summaryrefslogtreecommitdiffstats
path: root/src/control/TrafficLights.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-03 17:28:54 +0200
committeraap <aap@papnet.eu>2020-05-03 17:28:54 +0200
commit67467f15d1dd8e545acc47c5e24beb74e4ca78b3 (patch)
treeab03d72bf34fe94b0e0acdfbb5d49ca3316937fa /src/control/TrafficLights.cpp
parentimplemented most of vice city path system (diff)
downloadre3-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.cpp4
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