summaryrefslogtreecommitdiffstats
path: root/src/control/Bridge.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-23 14:09:54 +0100
committerGitHub <noreply@github.com>2021-01-23 14:09:54 +0100
commit4bde3366c1a2edb13f67b3fa9e1605573d8331bd (patch)
treef6b742f26201f0f5a28e2c12fba508ea41cc04f9 /src/control/Bridge.cpp
parentRemove restrictions in CGame::Process (diff)
parentRemove size assert (diff)
downloadre3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.gz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.bz2
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.lz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.xz
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.tar.zst
re3-4bde3366c1a2edb13f67b3fa9e1605573d8331bd.zip
Diffstat (limited to 'src/control/Bridge.cpp')
-rw-r--r--src/control/Bridge.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/control/Bridge.cpp b/src/control/Bridge.cpp
index 1e63cf30..e7c76a9c 100644
--- a/src/control/Bridge.cpp
+++ b/src/control/Bridge.cpp
@@ -161,3 +161,23 @@ bool CBridge::ThisIsABridgeObjectMovingUp(int index)
return false;
#endif
}
+
+void CBridge::ForceBridgeState(uint8 state)
+{
+#ifdef GTA_BRIDGE
+ State = state;
+ switch (state)
+ {
+ case STATE_BRIDGE_LOCKED:
+ case STATE_LIFT_PART_MOVING_DOWN:
+ case STATE_LIFT_PART_ABOUT_TO_MOVE_UP:
+ ThePaths.SetLinksBridgeLights(-330.0f, -230.0f, -700.0f, -588.0f, true);
+ break;
+ case STATE_BRIDGE_ALWAYS_UNLOCKED:
+ ThePaths.SetLinksBridgeLights(-330.0f, -230.0f, -700.0f, -588.0f, false);
+ break;
+ default:
+ break;
+ }
+#endif
+} \ No newline at end of file