summaryrefslogtreecommitdiffstats
path: root/src/vehicles/CarGen.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-02 14:28:19 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-02 14:28:19 +0200
commit52390062b39a3398379934e59a15faa01613e586 (patch)
treeba7c8c16921d09a9ec1e2d33323ab142048a3290 /src/vehicles/CarGen.cpp
parentSetPosition, part 1 (diff)
downloadre3-52390062b39a3398379934e59a15faa01613e586.tar
re3-52390062b39a3398379934e59a15faa01613e586.tar.gz
re3-52390062b39a3398379934e59a15faa01613e586.tar.bz2
re3-52390062b39a3398379934e59a15faa01613e586.tar.lz
re3-52390062b39a3398379934e59a15faa01613e586.tar.xz
re3-52390062b39a3398379934e59a15faa01613e586.tar.zst
re3-52390062b39a3398379934e59a15faa01613e586.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/CarGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index c04e8c35..72b6c30c 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -59,7 +59,7 @@ void CCarGenerator::DoInternalProcessing()
if (pos.z <= -100.0f)
pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y);
pos.z += pBoat->GetDistanceFromCentreOfMassToBaseOfModel();
- pBoat->GetPosition() = pos;
+ pBoat->SetPosition(pos);
pBoat->SetOrientation(0.0f, 0.0f, DEGTORAD(m_fAngle));
pBoat->SetStatus(STATUS_ABANDONED);
pBoat->m_nDoorLock = CARLOCK_UNLOCKED;
@@ -93,7 +93,7 @@ void CCarGenerator::DoInternalProcessing()
pCar->bIsStatic = false;
pCar->bEngineOn = false;
pos.z += pCar->GetDistanceFromCentreOfMassToBaseOfModel();
- pCar->GetPosition() = pos;
+ pCar->SetPosition(pos);
pCar->SetOrientation(0.0f, 0.0f, DEGTORAD(m_fAngle));
pCar->SetStatus(STATUS_ABANDONED);
pCar->bLightsOn = false;