summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-07 11:46:15 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-07 11:46:15 +0200
commitde4323f949accd42264b49e5352ee3522fd575c7 (patch)
treea6fe982655205cb2f7c585a85ba8c6015beb78d5 /src/vehicles/Vehicle.cpp
parentNew ped objectives (diff)
parentmaking it close to original (diff)
downloadre3-de4323f949accd42264b49e5352ee3522fd575c7.tar
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.gz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.bz2
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.lz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.xz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.zst
re3-de4323f949accd42264b49e5352ee3522fd575c7.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index c5537a48..824aeac1 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -80,6 +80,9 @@ CVehicle::CVehicle(uint8 CreatedBy)
bIsLawEnforcer = false;
bIsAmbulanceOnDuty = false;
bIsFireTruckOnDuty = false;
+#ifdef FIX_BUGS
+ bIsHandbrakeOn = false;
+#endif
CCarCtrl::UpdateCarCount(this, false);
m_fHealth = 1000.0f;
bEngineOn = true;
@@ -117,7 +120,7 @@ CVehicle::CVehicle(uint8 CreatedBy)
m_numPedsUseItAsCover = 0;
bIsCarParkVehicle = false;
bHasAlreadyBeenRecorded = false;
- m_bSirenOrAlarm = 0;
+ m_bSirenOrAlarm = false;
m_nCarHornTimer = 0;
m_nCarHornPattern = 0;
m_nCarHornDelay = 0;
@@ -748,7 +751,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
static bool bBraking;
static bool bDriving;
-#ifdef FIX_BUGS
+#ifdef FIX_SIGNIFICANT_BUGS
bAlreadySkidding = false;
#endif
@@ -903,7 +906,7 @@ CVehicle::ProcessBikeWheel(CVector &wheelFwd, CVector &wheelRight, CVector &whee
static bool bDriving;
static bool bReversing;
-#ifdef FIX_BUGS
+#ifdef FIX_SIGNIFICANT_BUGS
bAlreadySkidding = false;
#endif
@@ -1032,7 +1035,6 @@ CVehicle::ProcessBikeWheel(CVector &wheelFwd, CVector &wheelRight, CVector &whee
float impulse = speed*m_fMass;
float turnImpulse = speed*GetMass(wheelContactPoint, direction);
CVector vTurnImpulse = turnImpulse * direction;
-
ApplyMoveForce(impulse * direction);
float turnRight = DotProduct(vTurnImpulse, GetRight());