summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-08-14 17:54:01 +0200
committereray orçunus <erayorcunus@gmail.com>2020-08-14 17:54:01 +0200
commitf403a63a5cc2262dc2a10f4963140aceff15e681 (patch)
treec79802b98ac69c71703125b6ea1eb89f2d6e198c /src/control
parentGuardian Angels fix (diff)
downloadre3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar.gz
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar.bz2
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar.lz
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar.xz
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.tar.zst
re3-f403a63a5cc2262dc2a10f4963140aceff15e681.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 69b8ee4f..0c3d269c 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -12725,14 +12725,20 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_GET_WHEELIE_STATS:
{
CollectParameters(&m_nIp, 1);
- static bool bShowed = false;
- if (!bShowed) {
- debug("GET_WHEELIE_STATS not implemented\n");
- bShowed = true;
- }
- for (int i = 0; i < 6; i++)
- ScriptParams[i] = 0;
+ CPlayerInfo* pPlayerInfo = &CWorld::Players[ScriptParams[0]];
+ ScriptParams[0] = pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels;
+ ScriptParams[1] = pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels;
+ ScriptParams[2] = pPlayerInfo->m_nLastTimeSpentOnWheelie;
+ ScriptParams[3] = pPlayerInfo->m_nLastDistanceTravelledOnWheelie;
+ ScriptParams[4] = pPlayerInfo->m_nLastTimeSpentOnStoppie;
+ ScriptParams[5] = pPlayerInfo->m_nLastDistanceTravelledOnStoppie;
StoreParameters(&m_nIp, 6);
+ pPlayerInfo->m_nLastTimeCarSpentOnTwoWheels = 0;
+ pPlayerInfo->m_nLastDistanceCarTravelledOnTwoWheels = 0;
+ pPlayerInfo->m_nLastTimeSpentOnWheelie = 0;
+ pPlayerInfo->m_nLastDistanceTravelledOnWheelie = 0;
+ pPlayerInfo->m_nLastTimeSpentOnStoppie = 0;
+ pPlayerInfo->m_nLastDistanceTravelledOnStoppie = 0;
return 0;
}
//case COMMAND_DISARM_CHAR: