summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-17 13:19:20 +0200
committeraap <aap@papnet.eu>2019-07-17 13:19:20 +0200
commit0f1fbf5e9a7477c6fbb7645491598e87ed2e183e (patch)
tree713a8e10b3657d4c3a0d9c20c3704e0da8f9357e /src/vehicles/Vehicle.cpp
parentMerge pull request #139 from Nick007J/master (diff)
downloadre3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.gz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.bz2
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.lz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.xz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.zst
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 3ef581a0..f3a8f785 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -259,7 +259,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
adhesion *= CTimer::GetTimeStep();
if(bAlreadySkidding)
- adhesion *= m_handling->fTractionLoss;
+ adhesion *= pHandling->fTractionLoss;
// moving sideways
if(contactSpeedRight != 0.0f){
@@ -318,7 +318,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
}
float l = Sqrt(sq(right) + sq(fwd));
- float tractionLoss = bAlreadySkidding ? 1.0f : m_handling->fTractionLoss;
+ float tractionLoss = bAlreadySkidding ? 1.0f : pHandling->fTractionLoss;
right *= adhesion * tractionLoss / l;
fwd *= adhesion * tractionLoss / l;
}
@@ -450,7 +450,7 @@ CVehicle::IsVehicleNormal(void)
bool
CVehicle::CarHasRoof(void)
{
- if((m_handling->Flags & HANDLING_HAS_NO_ROOF) == 0)
+ if((pHandling->Flags & HANDLING_HAS_NO_ROOF) == 0)
return true;
if(m_aExtras[0] && m_aExtras[1])
return false;