summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-10-03 10:19:57 +0200
committerGitHub <noreply@github.com>2019-10-03 10:19:57 +0200
commit0346d44626c57b536b93db0b7e60f664a7a801b0 (patch)
treeb601dbb9390c2b9a6cd4a2181000d35dfbd10fad /src/control
parentMerge pull request #217 from Sergeanur/WeaveThroughPedsSectorList (diff)
parentFixes & peds (diff)
downloadre3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar.gz
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar.bz2
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar.lz
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar.xz
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.tar.zst
re3-0346d44626c57b536b93db0b7e60f664a7a801b0.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 885d1d47..1511b233 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1707,7 +1707,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
ped->SetOrientation(0.0f, 0.0f, 0.0f);
CTheScripts::ClearSpaceForMissionEntity(pos, ped);
CWorld::Add(ped);
- ped->m_level = CTheZones::GetLevelFromPosition(pos);
+ ped->m_nZoneLevel = CTheZones::GetLevelFromPosition(pos);
CPopulation::ms_nTotalMissionPeds++;
ScriptParams[0] = CPools::GetPedPool()->GetIndex(ped);
StoreParameters(&m_nIp, 1);
@@ -1948,7 +1948,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
car->AutoPilot.m_nCruiseSpeed = car->AutoPilot.m_fMaxTrafficSpeed = 9.0f;
car->AutoPilot.m_nCurrentLane = car->AutoPilot.m_nNextLane = 0;
car->bEngineOn = false;
- car->m_level = CTheZones::GetLevelFromPosition(pos);
+ car->m_nZoneLevel = CTheZones::GetLevelFromPosition(pos);
car->bHasBeenOwnedByPlayer = true;
CWorld::Add(car);
handle = CPools::GetVehiclePool()->GetIndex(car);
@@ -2748,7 +2748,7 @@ int8 CRunningScript::ProcessCommandsFrom200To299(int32 command)
AnimationId anim = pVehicle->bLowVehicle ? ANIM_CAR_LSIT : ANIM_CAR_SIT;
pPed->m_pVehicleAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, anim, 100.0f);
pPed->StopNonPartialAnims();
- pPed->m_level = CTheZones::GetLevelFromPosition(pPed->GetPosition());
+ pPed->m_nZoneLevel = CTheZones::GetLevelFromPosition(pPed->GetPosition());
CWorld::Add(pPed);
ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed);
StoreParameters(&m_nIp, 1);