diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 21:06:38 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 21:06:38 +0100 |
commit | 3d4791f2915a5b1f38c34a0cf01e0dffc588af8c (patch) | |
tree | f6a510c62b8322a11292acafbbc266d1c2c466c2 /src/control/Script.cpp | |
parent | First batch of fixes (CallAndMessage) (diff) | |
download | re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.gz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.bz2 re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.lz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.xz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.zst re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 83f43276..e70bd508 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -3439,13 +3439,8 @@ int8 CRunningScript::ProcessCommands100To199(int32 command) } else { CVehicle* car; - if(!CModelInfo::IsBikeModel(ScriptParams[0])) car = new CAutomobile(ScriptParams[0], MISSION_VEHICLE); -#ifdef FIX_BUGS - else { - debug("This shouldn't happen"); - return 0; - } -#endif + if (!CModelInfo::IsBikeModel(ScriptParams[0])) + car = new CAutomobile(ScriptParams[0], MISSION_VEHICLE); CVector pos = *(CVector*)&ScriptParams[1]; if (pos.z <= MAP_Z_LOW_LIMIT) pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y); |