summaryrefslogtreecommitdiffstats
path: root/src/control/Script3.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2020-12-07 00:56:12 +0100
committerwithmorten <morten.with@gmail.com>2020-12-07 00:56:12 +0100
commitafdf8c25a05f280f524d946384cf74d69aa16e8a (patch)
treeac8168c89de8d1738d6c6fc488f1f0c492f0592a /src/control/Script3.cpp
parentuint8 enums fixed (diff)
downloadre3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.gz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.bz2
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.lz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.xz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.zst
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script3.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script3.cpp b/src/control/Script3.cpp
index 23ab453c..38bcb2ec 100644
--- a/src/control/Script3.cpp
+++ b/src/control/Script3.cpp
@@ -291,7 +291,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
infZ = *(float*)&ScriptParams[5];
supZ = *(float*)&ScriptParams[2];
}
- ScriptParams[0] = CGarages::AddOne(CVector(infX, infY, infZ), CVector(supX, supY, supZ), (eGarageType)ScriptParams[6], 0);
+ ScriptParams[0] = CGarages::AddOne(CVector(infX, infY, infZ), CVector(supX, supY, supZ), ScriptParams[6], 0);
StoreParameters(&m_nIp, 1);
return 0;
}
@@ -316,7 +316,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
infZ = *(float*)&ScriptParams[5];
supZ = *(float*)&ScriptParams[2];
}
- ScriptParams[0] = CGarages::AddOne(CVector(infX, infY, infZ), CVector(supX, supY, supZ), (eGarageType)ScriptParams[6], ScriptParams[7]);
+ ScriptParams[0] = CGarages::AddOne(CVector(infX, infY, infZ), CVector(supX, supY, supZ), ScriptParams[6], ScriptParams[7]);
StoreParameters(&m_nIp, 1);
return 0;
}
@@ -1826,7 +1826,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
}
case COMMAND_CHANGE_GARAGE_TYPE:
CollectParameters(&m_nIp, 2);
- CGarages::ChangeGarageType(ScriptParams[0], (eGarageType)ScriptParams[1], 0);
+ CGarages::ChangeGarageType(ScriptParams[0], ScriptParams[1], 0);
return 0;
case COMMAND_ACTIVATE_CRUSHER_CRANE:
{