diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-04 18:51:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 18:51:56 +0200 |
commit | 3554ec58bb41f322dda5699d6b485b47038debda (patch) | |
tree | 9426c3e7397ec950589d4787c95dfcbf47524a91 /src/core/World.cpp | |
parent | fixed fog color for librw (diff) | |
parent | GTA_ZONECULL define (diff) | |
download | re3-3554ec58bb41f322dda5699d6b485b47038debda.tar re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.gz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.bz2 re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.lz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.xz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.zst re3-3554ec58bb41f322dda5699d6b485b47038debda.zip |
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r-- | src/core/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index 30d086df..2833c59c 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -1618,7 +1618,7 @@ CWorld::RemoveFallenPeds(void) if(ped->CharCreatedBy != RANDOM_CHAR || ped->IsPlayer()) { int closestNode = ThePaths.FindNodeClosestToCoors(ped->GetPosition(), PATH_PED, 999999.9f, false, false); - CVector newPos = ThePaths.m_pathNodes[closestNode].pos; + CVector newPos = ThePaths.m_pathNodes[closestNode].GetPosition(); newPos.z += 2.0f; ped->Teleport(newPos); ped->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f); @@ -1642,7 +1642,7 @@ CWorld::RemoveFallenCars(void) (veh->pDriver && veh->pDriver->IsPlayer())) { int closestNode = ThePaths.FindNodeClosestToCoors(veh->GetPosition(), PATH_CAR, 999999.9f, false, false); - CVector newPos = ThePaths.m_pathNodes[closestNode].pos; + CVector newPos = ThePaths.m_pathNodes[closestNode].GetPosition(); newPos.z += 3.0f; veh->Teleport(newPos); veh->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f); |