diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:34:46 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:34:46 +0200 |
commit | 22e8b0e419ad811c977c67ea2f2c06d53ea3be5e (patch) | |
tree | 655dc6cff470ac28d19678c392a0aebb49cea937 /src/control/TrafficLights.cpp | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar.gz re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar.bz2 re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar.lz re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar.xz re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.tar.zst re3-22e8b0e419ad811c977c67ea2f2c06d53ea3be5e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/TrafficLights.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/TrafficLights.cpp b/src/control/TrafficLights.cpp index b2f0900e..f2dd6814 100644 --- a/src/control/TrafficLights.cpp +++ b/src/control/TrafficLights.cpp @@ -273,8 +273,12 @@ CTrafficLights::ShouldCarStopForLight(CVehicle *vehicle, bool alwaysStop) bool CTrafficLights::ShouldCarStopForBridge(CVehicle *vehicle) { +#ifdef GTA_BRIDGE return ThePaths.m_carPathLinks[vehicle->AutoPilot.m_nNextPathNodeInfo].bBridgeLights && !ThePaths.m_carPathLinks[vehicle->AutoPilot.m_nCurrentPathNodeInfo].bBridgeLights; +#else + return false; +#endif } int |