diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 21:29:50 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 21:29:50 +0100 |
commit | f73e870bdeed9506ee68a68136d92a3ead034f6c (patch) | |
tree | 5fde5893788ff1bb50e33b61cc8c0a9f9e3dc29d /src | |
parent | little cleanup of vehicle rendering (diff) | |
parent | bug of the decade (diff) | |
download | re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.gz re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.bz2 re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.lz re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.xz re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.zst re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/collision/ColModel.cpp | 1 | ||||
-rw-r--r-- | src/control/Script4.cpp | 5 | ||||
-rw-r--r-- | src/core/PlayerInfo.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/collision/ColModel.cpp b/src/collision/ColModel.cpp index d2e01f50..49847dbd 100644 --- a/src/collision/ColModel.cpp +++ b/src/collision/ColModel.cpp @@ -24,7 +24,6 @@ CColModel::CColModel(void) CColModel::~CColModel(void) { RemoveCollisionVolumes(); - RemoveTrianglePlanes(); } void* diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index 916e36e5..1337605f 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -106,7 +106,10 @@ int8 CRunningScript::ProcessCommands800To899(int32 command) printf("Couldn't find zone - %s\n", zone); return 0; } - CTheZones::SetPedGroup(zone_id, ScriptParams[0], ScriptParams[1]); + while (zone_id >= 0) { + CTheZones::SetPedGroup(zone_id, ScriptParams[0], ScriptParams[1]); + zone_id = CTheZones::FindNextZoneByLabelAndReturnIndex(zone, ZONE_INFO); + } return 0; } case COMMAND_START_CAR_FIRE: diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index 77ddfdb1..7289175d 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -132,7 +132,7 @@ CPlayerInfo::Process(void) CAutomobile *car = (CAutomobile*)m_pPed->m_pMyVehicle; if (car->m_nWheelsOnGround < 3) - m_nTimeNotFullyOnGround += CTimer::GetTimeInMilliseconds(); + m_nTimeNotFullyOnGround += CTimer::GetTimeStepInMilliseconds(); else m_nTimeNotFullyOnGround = 0; |