diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-08-14 21:41:04 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-08-14 21:44:12 +0200 |
commit | 8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa (patch) | |
tree | 49641e7b24ac8366e8569ecf43a95e13e9490b2f /src/control/Script.cpp | |
parent | Wheelie opcode (diff) | |
download | re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar.gz re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar.bz2 re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar.lz re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar.xz re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.tar.zst re3-8b3ca9564b1eeef6fd9d6296499594cfc8fec3aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 0c3d269c..e16ba9e0 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -12727,18 +12727,18 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command) CollectParameters(&m_nIp, 1); CPlayerInfo* pPlayerInfo = &CWorld::Players[ScriptParams[0]]; ScriptParams[0] = pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels; - ScriptParams[1] = pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels; + ScriptParams[1] = *(int*)&pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels; ScriptParams[2] = pPlayerInfo->m_nLastTimeSpentOnWheelie; - ScriptParams[3] = pPlayerInfo->m_nLastDistanceTravelledOnWheelie; + ScriptParams[3] = *(int*)&pPlayerInfo->m_nLastDistanceTravelledOnWheelie; ScriptParams[4] = pPlayerInfo->m_nLastTimeSpentOnStoppie; - ScriptParams[5] = pPlayerInfo->m_nLastDistanceTravelledOnStoppie; + ScriptParams[5] = *(int*)&pPlayerInfo->m_nLastDistanceTravelledOnStoppie; StoreParameters(&m_nIp, 6); pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels = 0; - pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels = 0; + pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels = 0.0f; pPlayerInfo->m_nLastTimeSpentOnWheelie = 0; - pPlayerInfo->m_nLastDistanceTravelledOnWheelie = 0; + pPlayerInfo->m_nLastDistanceTravelledOnWheelie = 0.0f; pPlayerInfo->m_nLastTimeSpentOnStoppie = 0; - pPlayerInfo->m_nLastDistanceTravelledOnStoppie = 0; + pPlayerInfo->m_nLastDistanceTravelledOnStoppie = 0.0f; return 0; } //case COMMAND_DISARM_CHAR: |