diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2020-03-29 17:39:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 17:39:47 +0200 |
commit | a0b077574e95e49ad845a6c9dc1af906b17277f9 (patch) | |
tree | de9f8dbd0e3c06ffbb95b13c0637dfc3db3873c1 /src/control/CarCtrl.cpp | |
parent | style & cosmetic fixes (diff) | |
parent | Merge pull request #367 from Sergeanur/wrappers_cleanup (diff) | |
download | re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.gz re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.bz2 re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.lz re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.xz re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.zst re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 07ba2e3c..3174a253 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -881,9 +881,7 @@ CCarCtrl::SlowCarOnRailsDownForTrafficAndLights(CVehicle* pVehicle) pVehicle->AutoPilot.ModifySpeed(max(maxSpeed, curSpeed - 0.5f * CTimer::GetTimeStep())); } } -#if 0 -WRAPPER void CCarCtrl::SlowCarDownForPedsSectorList(CPtrList&, CVehicle*, float, float, float, float, float*, float) { EAXJMP(0x419300); } -#else + void CCarCtrl::SlowCarDownForPedsSectorList(CPtrList& lst, CVehicle* pVehicle, float x_inf, float y_inf, float x_sup, float y_sup, float* pSpeed, float curSpeed) { float frontOffset = pVehicle->GetModelInfo()->GetColModel()->boundingBox.max.y; @@ -991,7 +989,6 @@ void CCarCtrl::SlowCarDownForPedsSectorList(CPtrList& lst, CVehicle* pVehicle, f } } } -#endif void CCarCtrl::SlowCarDownForCarsSectorList(CPtrList& lst, CVehicle* pVehicle, float x_inf, float y_inf, float x_sup, float y_sup, float* pSpeed, float curSpeed) { @@ -1055,9 +1052,6 @@ void CCarCtrl::SlowCarDownForOtherCar(CEntity* pOtherEntity, CVehicle* pVehicle, } } -#if 0 -WRAPPER float CCarCtrl::TestCollisionBetween2MovingRects(CVehicle* pVehicleA, CVehicle* pVehicleB, float projectionX, float projectionY, CVector* pForwardA, CVector* pForwardB, uint8 id) { EAXJMP(0x41A020); } -#else float CCarCtrl::TestCollisionBetween2MovingRects(CVehicle* pVehicleA, CVehicle* pVehicleB, float projectionX, float projectionY, CVector* pForwardA, CVector* pForwardB, uint8 id) { CVector2D vecBToA = pVehicleA->GetPosition() - pVehicleB->GetPosition(); @@ -1180,7 +1174,6 @@ float CCarCtrl::TestCollisionBetween2MovingRects(CVehicle* pVehicleA, CVehicle* } return proximity; } -#endif float CCarCtrl::FindAngleToWeaveThroughTraffic(CVehicle* pVehicle, CPhysical* pTarget, float angleToTarget, float angleForward) { |