diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-05 02:41:24 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-05 02:41:24 +0100 |
commit | 0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd (patch) | |
tree | bd7c5701e075b74e3ab82f79f4c123f45f53938c /src/vehicles/Vehicle.cpp | |
parent | Audio fixes (diff) | |
download | re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar.gz re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar.bz2 re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar.lz re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar.xz re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.tar.zst re3-0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 06a545ef..1849fd7f 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -149,6 +149,7 @@ CVehicle::CVehicle(uint8 CreatedBy) m_nAlarmState = 0; m_nDoorLock = CARLOCK_UNLOCKED; m_nLastWeaponDamage = -1; + m_pLastDamageEntity = nil; m_fMapObjectHeightAhead = m_fMapObjectHeightBehind = 0.0f; m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, this); if(m_audioEntityId >= 0) @@ -839,7 +840,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon if(IsBike()) brake = 0.6f * mod_HandlingManager.fWheelFriction / (pHandling->fMass + 200.0f); else if(pHandling->fMass < 500.0f) - brake = mod_HandlingManager.fWheelFriction / pHandling->fMass; + brake = 0.2f * mod_HandlingManager.fWheelFriction / pHandling->fMass; else if(GetModelIndex() == MI_RCBANDIT) brake = 0.2f * mod_HandlingManager.fWheelFriction / pHandling->fMass; else |