summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-05 02:41:24 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-05 02:41:24 +0100
commit0d3e6a3dce52b72f7e6ab47df0cf501ec019e6fd (patch)
treebd7c5701e075b74e3ab82f79f4c123f45f53938c /src/vehicles/Automobile.cpp
parentAudio fixes (diff)
downloadre3-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/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index db99c0de..a946bacb 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -260,6 +260,7 @@ CAutomobile::ProcessControl(void)
int i;
float wheelRot;
CColModel *colModel;
+ float brake = 0.0f;
if(bUsingSpecialColModel)
colModel = &CWorld::Players[CWorld::PlayerInFocus].m_ColModel;
@@ -450,7 +451,7 @@ CAutomobile::ProcessControl(void)
m_fBrakePedal = 1.0f;
m_fGasPedal = 0.0f;
}
- if(CPad::GetPad(0)->WeaponJustDown())
+ if(CPad::GetPad(0)->CarGunJustDown())
ActivateBomb();
break;
@@ -682,7 +683,6 @@ CAutomobile::ProcessControl(void)
AutoPilot.m_nCarMission == MISSION_PLANE_FLYTOCOORS)
skipPhysics = true;
- float brake;
if(skipPhysics){
bHasContacted = false;
bIsInSafePosition = false;