summaryrefslogtreecommitdiffstats
path: root/src/control/Bridge.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 09:24:18 +0200
committeraap <aap@papnet.eu>2020-05-06 09:24:18 +0200
commit8e84728f41aef0c01f0a7eaf2e074ee876712861 (patch)
tree85484924e37a3afb3c4524cb89f72672a9b86d88 /src/control/Bridge.cpp
parentupdated librw (diff)
parentRemove audio from premake (diff)
downloadre3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.gz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.bz2
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.lz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.xz
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.tar.zst
re3-8e84728f41aef0c01f0a7eaf2e074ee876712861.zip
Diffstat (limited to 'src/control/Bridge.cpp')
-rw-r--r--src/control/Bridge.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/control/Bridge.cpp b/src/control/Bridge.cpp
index 1e63cf30..e873062b 100644
--- a/src/control/Bridge.cpp
+++ b/src/control/Bridge.cpp
@@ -23,7 +23,6 @@ uint32 CBridge::TimeOfBridgeBecomingOperational;
void CBridge::Init()
{
-#ifdef GTA_BRIDGE
FindBridgeEntities();
OldLift = -1.0f;
if (pLiftPart && pWeight)
@@ -36,12 +35,10 @@ void CBridge::Init()
ThePaths.SetLinksBridgeLights(-330.0, -230.0, -700.0, -588.0, true);
}
-#endif
}
void CBridge::Update()
{
-#ifdef GTA_BRIDGE
if (!pLiftPart || !pWeight)
return;
@@ -116,21 +113,15 @@ void CBridge::Update()
ThePaths.SetLinksBridgeLights(-330.0, -230.0, -700.0, -588.0, true);
else if (State == STATE_LIFT_PART_IS_DOWN && OldState == STATE_LIFT_PART_MOVING_DOWN)
ThePaths.SetLinksBridgeLights(-330.0, -230.0, -700.0, -588.0, false);
-#endif
}
bool CBridge::ShouldLightsBeFlashing()
{
-#ifdef GTA_BRIDGE
return State != STATE_LIFT_PART_IS_DOWN;
-#else
- return false;
-#endif
}
void CBridge::FindBridgeEntities()
{
-#ifdef GTA_BRIDGE
pWeight = nil;
pLiftRoad = nil;
pLiftPart = nil;
@@ -147,17 +138,12 @@ void CBridge::FindBridgeEntities()
pWeight = entry;
}
}
-#endif
}
bool CBridge::ThisIsABridgeObjectMovingUp(int index)
{
-#ifdef GTA_BRIDGE
if (index != MI_BRIDGEROADSEGMENT && index != MI_BRIDGELIFT)
return false;
return State == STATE_LIFT_PART_ABOUT_TO_MOVE_UP || State == STATE_LIFT_PART_MOVING_UP;
-#else
- return false;
-#endif
}