diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-22 14:04:09 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-22 14:04:09 +0100 |
commit | cea6b20c09532c3321c45f18ce36ec34fe836d1f (patch) | |
tree | bd6376dac146895eb1f0c1de37f1cf2e2bfdb19f /src/vehicles | |
parent | CMessages::GetTokenPadKeyString (diff) | |
parent | get rid of most --MIAMI comments (diff) | |
download | re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.gz re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.bz2 re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.lz re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.xz re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.zst re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Bike.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Boat.cpp | 10 | ||||
-rw-r--r-- | src/vehicles/CarGen.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Cranes.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Floater.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/HandlingMgr.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Heli.cpp | 4 | ||||
-rw-r--r-- | src/vehicles/Plane.cpp | 8 | ||||
-rw-r--r-- | src/vehicles/Transmission.cpp | 1 | ||||
-rw-r--r-- | src/vehicles/Vehicle.cpp | 4 |
11 files changed, 10 insertions, 29 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index a0581d5c..13291d33 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -4986,7 +4986,6 @@ CAutomobile::HasCarStoppedBecauseOfLight(void) return false; } -// --MIAMI: Done void CPed::DeadPedMakesTyresBloody(void) { @@ -5010,7 +5009,6 @@ CPed::DeadPedMakesTyresBloody(void) } } -// --MIAMI: Done void CPed::MakeTyresMuddySectorList(CPtrList &list) { diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp index 2c2b9468..7b6787c7 100644 --- a/src/vehicles/Bike.cpp +++ b/src/vehicles/Bike.cpp @@ -37,8 +37,6 @@ #include "Bike.h" #include "Debug.h" -//--MIAMI: file done - const uint32 CBike::nSaveStructSize = #ifdef COMPATIBLE_SAVES 1260; diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index eae764b4..6a15d53d 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -28,8 +28,6 @@ #include "Record.h" #include "Shadows.h" -//--MIAMI: file done - #define INVALID_ORIENTATION (-9999.99f) float CBoat::MAX_WAKE_LENGTH = 50.0f; @@ -135,9 +133,9 @@ CBoat::ProcessControl(void) m_fBuoyancy *= 0.99f; #ifdef FIX_BUGS - if(FindPlayerPed() && FindPlayerPed()->m_pWanted->m_nWantedLevel > 0 && GetModelIndex() == MI_PREDATOR){ + if(FindPlayerPed() && FindPlayerPed()->m_pWanted->GetWantedLevel() > 0 && GetModelIndex() == MI_PREDATOR){ #else - if(FindPlayerPed()->m_pWanted->m_nWantedLevel > 0 && GetModelIndex() == MI_PREDATOR){ + if(FindPlayerPed()->m_pWanted->GetWantedLevel() > 0 && GetModelIndex() == MI_PREDATOR){ #endif CVehicle *playerVeh = FindPlayerVehicle(); if(playerVeh && playerVeh->GetVehicleAppearance() == VEHICLE_APPEARANCE_BOAT && @@ -1254,7 +1252,7 @@ CBoat::Teleport(CVector v) CWorld::Add(this); } -//--MIAMI: unused +// unused bool CBoat::IsSectorAffectedByWake(CVector2D sector, float fSize, CBoat **apBoats) { @@ -1286,7 +1284,7 @@ CBoat::IsSectorAffectedByWake(CVector2D sector, float fSize, CBoat **apBoats) return numVerts != 0; } -//--MIAMI: unused +// unused float CBoat::IsVertexAffectedByWake(CVector vecVertex, CBoat *pBoat) { diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp index 77d66cbf..78e67d49 100644 --- a/src/vehicles/CarGen.cpp +++ b/src/vehicles/CarGen.cpp @@ -18,8 +18,6 @@ #include "Zones.h" #include "Occlusion.h" -// --MIAMI: file done - uint8 CTheCarGenerators::ProcessCounter; uint32 CTheCarGenerators::NumOfCarGenerators; CCarGenerator CTheCarGenerators::CarGeneratorArray[NUM_CARGENS]; diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp index 8f23836d..c84b6732 100644 --- a/src/vehicles/Cranes.cpp +++ b/src/vehicles/Cranes.cpp @@ -12,8 +12,6 @@ #include "Object.h" #include "World.h" -// --MIAMI: file done - #define MAX_DISTANCE_TO_FIND_CRANE (100.0f) #define CRANE_UPDATE_RADIUS (300.0f) #define CRANE_MOVEMENT_PROCESSING_RADIUS (150.0f) diff --git a/src/vehicles/Floater.cpp b/src/vehicles/Floater.cpp index 92e3d80e..08688a3c 100644 --- a/src/vehicles/Floater.cpp +++ b/src/vehicles/Floater.cpp @@ -7,8 +7,6 @@ #include "Vehicle.h" #include "Floater.h" -//--MIAMI: done - cBuoyancy mod_Buoyancy; float fVolMultiplier = 1.0f; diff --git a/src/vehicles/HandlingMgr.cpp b/src/vehicles/HandlingMgr.cpp index 1a8d059c..b5dc7658 100644 --- a/src/vehicles/HandlingMgr.cpp +++ b/src/vehicles/HandlingMgr.cpp @@ -5,8 +5,6 @@ #include "Physical.h" #include "HandlingMgr.h" -//--MIAMI: done - cHandlingDataMgr mod_HandlingManager; const char *HandlingFilename = "HANDLING.CFG"; diff --git a/src/vehicles/Heli.cpp b/src/vehicles/Heli.cpp index 1c1b2617..38550c38 100644 --- a/src/vehicles/Heli.cpp +++ b/src/vehicles/Heli.cpp @@ -32,8 +32,6 @@ #include "Replay.h" #endif -//--MIAMI: done - enum { HELI_STATUS_HOVER, @@ -480,7 +478,7 @@ CHeli::ProcessControl(void) // Shoot int shootTimeout; if (m_heliType == HELI_TYPE_RANDOM) { - switch (FindPlayerPed()->m_pWanted->m_nWantedLevel) { + switch (FindPlayerPed()->m_pWanted->GetWantedLevel()) { case 0: case 1: case 2: shootTimeout = 999999; break; diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp index 5b5536fd..48f7b8c0 100644 --- a/src/vehicles/Plane.cpp +++ b/src/vehicles/Plane.cpp @@ -20,8 +20,6 @@ #include "Plane.h" #include "MemoryHeap.h" -//--MIAMI: file done - CPlaneNode *pPathNodes; CPlaneNode *pPath2Nodes; CPlaneNode *pPath3Nodes; @@ -1004,7 +1002,7 @@ CPlane::TestRocketCollision(CVector *rocketPos) return false; } -//--MIAMI: unused +// unused // BUG: not in CPlane in the game void CPlane::CreateIncomingCesna(void) @@ -1028,7 +1026,7 @@ CPlane::CreateIncomingCesna(void) printf("CPlane::CreateIncomingCesna(void)\n"); } -//--MIAMI: unused +// unused void CPlane::CreateDropOffCesna(void) { @@ -1051,7 +1049,7 @@ CPlane::CreateDropOffCesna(void) printf("CPlane::CreateDropOffCesna(void)\n"); } -//--MIAMI: all unused +// all unused const CVector CPlane::FindDrugPlaneCoordinates(void) { return pDrugRunCesna->GetPosition(); } const CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna->GetPosition(); } bool CPlane::HasCesnaLanded(void) { return CesnaMissionStatus == CESNA_STATUS_LANDED; } diff --git a/src/vehicles/Transmission.cpp b/src/vehicles/Transmission.cpp index ce4b97f4..f7851f47 100644 --- a/src/vehicles/Transmission.cpp +++ b/src/vehicles/Transmission.cpp @@ -5,7 +5,6 @@ #include "Transmission.h" //--LCS: file done - void cTransmission::InitGearRatios(void) { diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 5f6ddafa..02852cee 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -1505,7 +1505,7 @@ CVehicle::MakeNonDraggedPedsLeaveVehicle(CPed *ped1, CPed *ped2, CPlayerPed *&pl cop = nil; if(ped1->IsPlayer() && ped2->m_nPedType == PEDTYPE_COP && - ((CPlayerPed*)ped1)->m_pWanted->m_nWantedLevel > 0 && + ((CPlayerPed*)ped1)->m_pWanted->GetWantedLevel() > 0 && ped2->m_pedInObjective == ped1){ player = (CPlayerPed*)ped1; cop = (CCopPed*)ped2; @@ -1535,7 +1535,7 @@ CVehicle::MakeNonDraggedPedsLeaveVehicle(CPed *ped1, CPed *ped2, CPlayerPed *&pl int numPeds3 = 0; for(i = 0; i < numPeds; i++){ if(peds[i]->IsPlayer() && ped2->m_nPedType == PEDTYPE_COP && - ((CPlayerPed*)peds[i])->m_pWanted->m_nWantedLevel > 0 && + ((CPlayerPed*)peds[i])->m_pWanted->GetWantedLevel() > 0 && ped2->m_pedInObjective == peds[i]){ player = (CPlayerPed*)peds[i]; cop = (CCopPed*)ped2; |