summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-29 19:12:53 +0200
committerGitHub <noreply@github.com>2020-03-29 19:12:53 +0200
commit8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd (patch)
treee086c6d1056146aa7b986e602a6dc00bd4db3632 /src/control/Script.cpp
parentMerge pull request #370 from erorcun/erorcun (diff)
parentfixed PS2 build (diff)
downloadre3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar.gz
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar.bz2
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar.lz
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar.xz
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.tar.zst
re3-8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 09ee52cc..2ea5ee24 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4622,7 +4622,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
infZ = *(float*)&ScriptParams[5];
supZ = *(float*)&ScriptParams[2];
}
- ScriptParams[0] = CGarages::AddOne(infX, infY, infZ, supX, supY, supZ, ScriptParams[6], 0);
+ ScriptParams[0] = CGarages::AddOne(infX, infY, infZ, supX, supY, supZ, (eGarageType)ScriptParams[6], 0);
StoreParameters(&m_nIp, 1);
return 0;
}
@@ -4647,7 +4647,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
infZ = *(float*)&ScriptParams[5];
supZ = *(float*)&ScriptParams[2];
}
- ScriptParams[0] = CGarages::AddOne(infX, infY, infZ, supX, supY, supZ, ScriptParams[6], ScriptParams[7]);
+ ScriptParams[0] = CGarages::AddOne(infX, infY, infZ, supX, supY, supZ, (eGarageType)ScriptParams[6], ScriptParams[7]);
StoreParameters(&m_nIp, 1);
return 0;
}
@@ -7110,13 +7110,13 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
case COMMAND_OPEN_GARAGE:
{
CollectParameters(&m_nIp, 1);
- CGarages::Garages[ScriptParams[0]].OpenThisGarage();
+ CGarages::aGarages[ScriptParams[0]].OpenThisGarage();
return 0;
}
case COMMAND_CLOSE_GARAGE:
{
CollectParameters(&m_nIp, 1);
- CGarages::Garages[ScriptParams[0]].CloseThisGarage();
+ CGarages::aGarages[ScriptParams[0]].CloseThisGarage();
return 0;
}
case COMMAND_WARP_CHAR_FROM_CAR_TO_COORD: