summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-02-22 23:42:10 +0100
committereray orçunus <erayorcunus@gmail.com>2020-02-22 23:48:21 +0100
commitb2d062ef2dc5d117fa11a56d56a2ac8531c7a187 (patch)
treee90bb131f188deae507206838c739845a5698e97 /src/vehicles/Automobile.cpp
parentFix police radio condition (diff)
downloadre3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.gz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.bz2
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.lz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.xz
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.tar.zst
re3-b2d062ef2dc5d117fa11a56d56a2ac8531c7a187.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index a79f619c..64f756ad 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -2177,7 +2177,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
if(phys->bIsStatic){
phys->bIsStatic = false;
phys->m_nStaticFrames = 0;
- phys->ApplyMoveForce(m_vecMoveSpeed / speed);
+ phys->ApplyMoveForce(m_vecMoveSpeed / Sqrt(speed));
phys->AddToMovingList();
}
}
@@ -2318,7 +2318,7 @@ CAutomobile::ProcessControlInputs(uint8 pad)
// Brake if player isn't in control
// BUG: game always uses pad 0 here
- if(CPad::GetPad(pad)->DisablePlayerControls){
+ if(CPad::GetPad(pad)->ArePlayerControlsDisabled()){
m_fBrakePedal = 1.0f;
bIsHandbrakeOn = true;
m_fGasPedal = 0.0f;