summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-05 11:45:20 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-05 11:45:20 +0100
commit2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8 (patch)
treeac527d9e47735affc95324c6738b6240b8f59b6e /src/vehicles/Automobile.cpp
parentfirst version of new renderer (diff)
downloadre3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar.gz
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar.bz2
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar.lz
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar.xz
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.tar.zst
re3-2e734a47504c13b1d5e5b7382d7c23e74c6ad4b8.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 e66865da..753b853d 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -224,6 +224,7 @@ CAutomobile::ProcessControl(void)
int i;
float wheelRot;
CColModel *colModel;
+ float brake = 0.0f;
if(bUsingSpecialColModel)
colModel = &CWorld::Players[CWorld::PlayerInFocus].m_ColModel;
@@ -539,7 +540,6 @@ CAutomobile::ProcessControl(void)
break;
}
- float brake;
if(skipPhysics){
bHasContacted = false;
bIsInSafePosition = false;
@@ -725,7 +725,7 @@ CAutomobile::ProcessControl(void)
traction *= 4.0f;
if(FindPlayerVehicle() && FindPlayerVehicle() == this){
- if(CPad::GetPad(0)->WeaponJustDown()){
+ if(CPad::GetPad(0)->CarGunJustDown()){
if(m_bombType == CARBOMB_TIMED){
m_bombType = CARBOMB_TIMEDACTIVE;
m_nBombTimer = 7000;