diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-12 18:15:13 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-12 18:15:13 +0200 |
commit | 3e71c15b337e7f8ed12e43a5891169b96203c98f (patch) | |
tree | ef4276ebe0da0c414cedbc88b9e2ecacd8238252 /src/core | |
parent | Merge remote-tracking branch 'upstream/master' into carctrl_dev (diff) | |
parent | fixed launch in space bug (diff) | |
download | re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar.gz re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar.bz2 re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar.lz re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar.xz re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.tar.zst re3-3e71c15b337e7f8ed12e43a5891169b96203c98f.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/World.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index 29d0ac18..1598967a 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -331,7 +331,7 @@ CWorld::ProcessVerticalLine(const CVector &point1, float z2, CColPoint &point, C { AdvanceCurrentScanCode(); CVector point2(point1.x, point1.y, z2); - return CWorld::ProcessVerticalLineSector(*GetSector(GetSectorIndexX(point1.x), GetSectorIndexX(point1.y)), + return ProcessVerticalLineSector(*GetSector(GetSectorIndexX(point1.x), GetSectorIndexX(point1.y)), CColLine(point1, point2), point, entity, checkBuildings, checkVehicles, checkPeds, checkObjects, checkDummies, ignoreSeeThrough, poly); } @@ -605,8 +605,8 @@ CWorld::FindObjectsInRangeSectorList(CPtrList &list, CVector ¢re, float dist for (CPtrNode *node = list.first; node; node = node->next) { CEntity *object = (CEntity*)node->item; - if (object->m_scanCode != CWorld::GetCurrentScanCode()) { - object->m_scanCode = CWorld::GetCurrentScanCode(); + if (object->m_scanCode != GetCurrentScanCode()) { + object->m_scanCode = GetCurrentScanCode(); CVector diff = centre - object->GetPosition(); if (ignoreZ) @@ -941,11 +941,11 @@ CWorld::RemoveEntityInsteadOfProcessingIt(CEntity* ent) { if (ent->IsPed()) { if (FindPlayerPed() == ent) - CWorld::Remove(ent); + Remove(ent); else CPopulation::RemovePed(ent); } else { - CWorld::Remove(ent); + Remove(ent); delete ent; } } @@ -987,7 +987,7 @@ CWorld::RemoveFallenCars(void) veh->Teleport(newPos); veh->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f); } else if (veh->VehicleCreatedBy == RANDOM_VEHICLE || veh->VehicleCreatedBy == PARKED_VEHICLE) { - CWorld::Remove(veh); + Remove(veh); delete veh; } } @@ -1001,7 +1001,7 @@ CWorld::Process(void) if (!(CTimer::GetFrameCounter() & 63)) CReferences::PruneAllReferencesInWorld(); - if (CWorld::bProcessCutsceneOnly) { + if (bProcessCutsceneOnly) { for (int i = 0; i < NUMCUTSCENEOBJECTS; i++) { CCutsceneObject *csObj = CCutsceneMgr::GetCutsceneObject(i); if (csObj && csObj->m_entryInfoList.first) { @@ -1036,7 +1036,7 @@ CWorld::Process(void) } } } - CWorld::bForceProcessControl = 1; + bForceProcessControl = true; for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CPhysical* movingEnt = (CPhysical*)node->item; if (movingEnt->bWasPostponed) { @@ -1050,7 +1050,7 @@ CWorld::Process(void) } } } - CWorld::bForceProcessControl = 0; + bForceProcessControl = false; if (CReplay::IsPlayingBack()) { for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CEntity* movingEnt = (CEntity*)node->item; @@ -1059,7 +1059,7 @@ CWorld::Process(void) movingEnt->UpdateRwFrame(); } } else { - CWorld::bNoMoreCollisionTorque = 0; + bNoMoreCollisionTorque = false; for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CEntity* movingEnt = (CEntity*)node->item; if (!movingEnt->bIsInSafePosition) { @@ -1068,7 +1068,7 @@ CWorld::Process(void) movingEnt->UpdateRwFrame(); } } - CWorld::bNoMoreCollisionTorque = 1; + bNoMoreCollisionTorque = true; for (int i = 0; i < 4; i++) { for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CEntity* movingEnt = (CEntity*)node->item; @@ -1091,7 +1091,7 @@ CWorld::Process(void) } } } - CWorld::bSecondShift = 0; + bSecondShift = false; for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CEntity* movingEnt = (CEntity*)node->item; if (!movingEnt->bIsInSafePosition) { @@ -1103,7 +1103,7 @@ CWorld::Process(void) } } } - CWorld::bSecondShift = 1; + bSecondShift = true; for (CPtrNode* node = ms_listMovingEntityPtrs.first; node; node = node->next) { CPhysical* movingEnt = (CPhysical*)node->item; if (!movingEnt->bIsInSafePosition) { @@ -1114,7 +1114,7 @@ CWorld::Process(void) movingEnt->bIsStuck = true; if (movingEnt->m_status == STATUS_PLAYER) { printf("STUCK: Final Step: Player Entity %d Is Stuck\n", movingEnt->m_modelIndex); - movingEnt->m_vecMoveSpeed *= 3.0f; + movingEnt->m_vecMoveSpeed *= 0.3f; movingEnt->ApplyMoveSpeed(); movingEnt->ApplyTurnSpeed(); } @@ -1167,9 +1167,9 @@ CWorld::Process(void) Players[PlayerInFocus].Process(); CRecordDataForChase::SaveOrRetrieveCarPositions(); if ((CTimer::GetFrameCounter() & 7) == 1) { - CWorld::RemoveFallenPeds(); + RemoveFallenPeds(); } else if ((CTimer::GetFrameCounter() & 7) == 5) { - CWorld::RemoveFallenCars(); + RemoveFallenCars(); } } } |