summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay <nickvnuk@gmail.com>2021-01-06 21:04:39 +0100
committerGitHub <noreply@github.com>2021-01-06 21:04:39 +0100
commit08ddef6a93a2d332a6ec674dad76d9fd5f798ec1 (patch)
treeb73ff906cdb5e8a78eaf510299e615bd2492c0c9 /src
parentCleanup and fixes for new decoders (diff)
parentGET_WHEELIE_STATS fix (diff)
downloadre3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar.gz
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar.bz2
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar.lz
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar.xz
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.tar.zst
re3-08ddef6a93a2d332a6ec674dad76d9fd5f798ec1.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Script7.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script7.cpp b/src/control/Script7.cpp
index 1bad3407..8d13bbae 100644
--- a/src/control/Script7.cpp
+++ b/src/control/Script7.cpp
@@ -576,11 +576,11 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
CollectParameters(&m_nIp, 1);
CPlayerInfo* pPlayerInfo = &CWorld::Players[ScriptParams[0]];
ScriptParams[0] = pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels;
- ScriptParams[1] = *(int*)&pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels;
+ *(float*)&ScriptParams[1] = pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels;
ScriptParams[2] = pPlayerInfo->m_nLastTimeSpentOnWheelie;
- ScriptParams[3] = *(int*)&pPlayerInfo->m_nLastDistanceTravelledOnWheelie;
+ *(float*)&ScriptParams[3] = pPlayerInfo->m_nLastDistanceTravelledOnWheelie;
ScriptParams[4] = pPlayerInfo->m_nLastTimeSpentOnStoppie;
- ScriptParams[5] = *(int*)&pPlayerInfo->m_nLastDistanceTravelledOnStoppie;
+ *(float*)&ScriptParams[5] = pPlayerInfo->m_nLastDistanceTravelledOnStoppie;
StoreParameters(&m_nIp, 6);
pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels = 0;
pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels = 0.0f;