summaryrefslogtreecommitdiffstats
path: root/src/control/Script10.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-30 23:38:43 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-30 23:38:43 +0100
commit75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79 (patch)
tree629c394b46991f2b51b98207eb7425db0d106f80 /src/control/Script10.cpp
parentfix (diff)
downloadre3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar.gz
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar.bz2
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar.lz
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar.xz
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.tar.zst
re3-75a20216d9c0c0cb4d0f9a8e56c2319214a1cb79.zip
Diffstat (limited to 'src/control/Script10.cpp')
-rw-r--r--src/control/Script10.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/control/Script10.cpp b/src/control/Script10.cpp
index 6514ebe5..ac3961a7 100644
--- a/src/control/Script10.cpp
+++ b/src/control/Script10.cpp
@@ -7,6 +7,7 @@
#include "DMAudio.h"
#include "Frontend.h"
#include "GameLogic.h"
+#include "Garages.h"
#include "General.h"
#include "Hud.h"
#include "Messages.h"
@@ -286,7 +287,7 @@ int8 CRunningScript::ProcessCommands1600To1699(int32 command)
return 0;
case COMMAND_LOCK_GARAGE:
CollectParameters(&m_nIp, 2);
- // CGarages::LockGarage(GET_INTEGER_PARAM(0), GET_INTEGER_PARAM(1));
+ CGarages::LockGarage(GET_INTEGER_PARAM(0), GET_INTEGER_PARAM(1));
return 0;
case COMMAND_IS_FINAL_GAME:
#ifdef FINAL
@@ -391,12 +392,12 @@ int8 CRunningScript::ProcessCommands1600To1699(int32 command)
CHud::SetHelpMessage(text, false, true); // + false
return 0;
}
- case COMMAND_SET_MISSION_CAR_CAN_BE_STORED_IN_GARAGE:
+ case COMMAND_SET_CAR_IS_REWARD:
{
CollectParameters(&m_nIp, 2);
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(GET_INTEGER_PARAM(0));
script_assert(pVehicle);
- pVehicle->bAllowGarageToStore = (GET_INTEGER_PARAM(1) != 0);
+ pVehicle->bRewardVehicle = (GET_INTEGER_PARAM(1) != 0);
return 0;
}
case COMMAND_FREEZE_ALL_PLAYER_FOLLOWERS: