diff options
author | saml1er <danishroar@gmail.com> | 2020-04-10 13:44:08 +0200 |
---|---|---|
committer | saml1er <danishroar@gmail.com> | 2020-04-10 13:44:08 +0200 |
commit | a8f7bf0beca5c200bc3396312f0caaceacd27f94 (patch) | |
tree | 80d37391cf0d9b74950ccaf8cf8ddf1956248066 /src/peds | |
parent | fix weather init (diff) | |
download | re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar.gz re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar.bz2 re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar.lz re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar.xz re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.tar.zst re3-a8f7bf0beca5c200bc3396312f0caaceacd27f94.zip |
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Ped.cpp | 4 | ||||
-rw-r--r-- | src/peds/Population.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 2cd942f9..687c9906 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -15027,7 +15027,7 @@ CPed::ProcessBuoyancy(void) #endif if (mod_Buoyancy.ProcessBuoyancy(this, GRAVITY * m_fMass * buoyancyLevel, &buoyancyPoint, &buoyancyImpulse)) { - m_flagD8 = true; + bTouchingWater = true; CEntity *entity; CColPoint point; if (CWorld::ProcessVerticalLine(GetPosition(), GetPosition().z - 3.0f, point, entity, false, true, false, false, false, false, false) @@ -15093,7 +15093,7 @@ CPed::ProcessBuoyancy(void) } else return; } else - m_flagD8 = false; + bTouchingWater = false; if (nGenerateWaterCircles && CTimer::GetTimeInMilliseconds() >= nGenerateWaterCircles) { CVector pos = GetPosition(); diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 3bf81066..c4290bd9 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -964,7 +964,7 @@ CPopulation::ConvertToRealObject(CDummyObject *dummy) } else if (obj->m_modelIndex == MI_BUOY) { obj->bIsStatic = false; obj->m_vecMoveSpeed = CVector(0.0f, 0.0f, -0.001f); - obj->m_flagD8 = true; + obj->bTouchingWater = true; obj->AddToMovingList(); } } |