summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-08 16:36:53 +0200
committeraap <aap@papnet.eu>2020-04-08 18:45:55 +0200
commit9176aef1b251fe08d536f69e383334015c94e146 (patch)
tree27f3979748ae701790a87ce701a87a75c6d9f9a7 /src/control/Script.cpp
parentimplemented CSkidmarks (diff)
parentfix bug (diff)
downloadre3-9176aef1b251fe08d536f69e383334015c94e146.tar
re3-9176aef1b251fe08d536f69e383334015c94e146.tar.gz
re3-9176aef1b251fe08d536f69e383334015c94e146.tar.bz2
re3-9176aef1b251fe08d536f69e383334015c94e146.tar.lz
re3-9176aef1b251fe08d536f69e383334015c94e146.tar.xz
re3-9176aef1b251fe08d536f69e383334015c94e146.tar.zst
re3-9176aef1b251fe08d536f69e383334015c94e146.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 6b79265a..18572573 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -7117,7 +7117,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
case COMMAND_CLOSE_GARAGE:
{
CollectParameters(&m_nIp, 1);
- CGarages::CloseGarage(ScriptParams[1]);
+ CGarages::CloseGarage(ScriptParams[0]);
return 0;
}
case COMMAND_WARP_CHAR_FROM_CAR_TO_COORD:
@@ -9141,7 +9141,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
assert(pVehicle);
assert(pVehicle->m_vehType == VEHICLE_TYPE_CAR);
CAutomobile* pCar = (CAutomobile*)pVehicle;
- pCar->bTakeLessDamage = ScriptParams[1];
+ pCar->bMoreResistantToDamage = ScriptParams[1];
return 0;
}
case COMMAND_SET_JAMES_CAR_ON_PATH_TO_PLAYER: