diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-15 17:13:49 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-15 17:13:49 +0200 |
commit | 2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3 (patch) | |
tree | e119d9af8c6dc6fe93387c1cb264ea12304fbc0a /src/control | |
parent | test (diff) | |
download | re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar.gz re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar.bz2 re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar.lz re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar.xz re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.tar.zst re3-2d9ba5bb9a82a9e4edf56df77c081ab5c1d8aea3.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Script.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index cfbaacda..a363cc41 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1630,6 +1630,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command) return 0; } case COMMAND_GENERATE_RANDOM_INT: + /* On PC between 0 and 32767, even though script expects values between 0 and 65536 */ *GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL) = CGeneral::GetRandomNumber(); return 0; case COMMAND_CREATE_CHAR: @@ -1812,7 +1813,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command) * CVector pos = *(CVector*)&ScriptParams[1]; * if (pos.z <= -100.0f) * pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y); - * pos.z += ped->GetDistanceFromCentreOfMassToBaseOfModel(); + * pos.z += entityToMove->GetDistanceFromCentreOfMassToBaseOfModel(); * entityToMove->Teleport(pos); * CTheScripts::ClearSpaceForMissionEntity(pos, entityToMove); * |