summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-08 21:45:37 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-08 21:45:37 +0200
commit570ccb7db1c94bf9adf62a8809dfa648139a3915 (patch)
tree8dadceb031c51a2cffc6fccd7600c95a16fd45e1 /src/control
parentupdate librw (diff)
parentMerge pull request #756 from erorcun/miami (diff)
downloadre3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.gz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.bz2
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.lz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.xz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.zst
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 95e93b6c..aa4e109f 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -12020,7 +12020,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
script_assert(pVehicle);
bool bIsBurst = false;
CBike* pBike = (CBike*)pVehicle;
- if (pVehicle->m_vehType == VEHICLE_APPEARANCE_BIKE) {
+ if (pVehicle->IsBike()) {
if (ScriptParams[1] == 4) {
for (int i = 0; i < 2; i++) {
if (pBike->m_wheelStatus[i] == WHEEL_STATUS_BURST)