summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-31 23:57:18 +0200
committeraap <aap@papnet.eu>2019-07-31 23:57:18 +0200
commit78c15c4828a540fd6ad4f1816b8cc9610409f740 (patch)
tree800fc93cb0226accb1806a8104bc3eccfb4f71f7 /src/vehicles/Automobile.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar.gz
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar.bz2
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar.lz
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar.xz
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.tar.zst
re3-78c15c4828a540fd6ad4f1816b8cc9610409f740.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 28ede4cd..00f53762 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -131,7 +131,7 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
field_594 = 0;
bNotDamagedUpsideDown = false;
bMoreResistantToDamage = false;
- m_fVelocityChangeForAudio = 0.f;
+ m_fVelocityChangeForAudio = 0.0f;
m_hydraulicState = 0;
for(i = 0; i < 4; i++){
@@ -4479,6 +4479,7 @@ CAutomobile::SetAllTaxiLights(bool set)
class CAutomobile_ : public CAutomobile
{
public:
+ void ctor(int32 id, uint8 CreatedBy) { ::new (this) CAutomobile(id, CreatedBy); }
void dtor() { CAutomobile::~CAutomobile(); }
void SetModelIndex_(uint32 id) { CAutomobile::SetModelIndex(id); }
void ProcessControl_(void) { CAutomobile::ProcessControl(); }
@@ -4508,6 +4509,7 @@ public:
};
STARTPATCHES
+ InjectHook(0x52C6B0, &CAutomobile_::ctor, PATCH_JUMP);
InjectHook(0x52D170, &CAutomobile_::dtor, PATCH_JUMP);
InjectHook(0x52D190, &CAutomobile_::SetModelIndex_, PATCH_JUMP);
InjectHook(0x531470, &CAutomobile_::ProcessControl_, PATCH_JUMP);