diff options
author | aap <aap@papnet.eu> | 2020-05-03 17:28:54 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-03 17:28:54 +0200 |
commit | 67467f15d1dd8e545acc47c5e24beb74e4ca78b3 (patch) | |
tree | ab03d72bf34fe94b0e0acdfbb5d49ca3316937fa /src/control/TrafficLights.cpp | |
parent | implemented most of vice city path system (diff) | |
download | re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar.gz re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar.bz2 re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar.lz re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar.xz re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.tar.zst re3-67467f15d1dd8e545acc47c5e24beb74e4ca78b3.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 |