summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-19 14:36:45 +0200
committeraap <aap@papnet.eu>2019-07-19 14:36:45 +0200
commit2c647ef2286b6b8fa0a1edf2d9b18361f5c528de (patch)
treef0c64afda69aa35af4169da1c9a53cca0635468d
parentimplemented col line rendering (diff)
downloadre3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar.gz
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar.bz2
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar.lz
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar.xz
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.tar.zst
re3-2c647ef2286b6b8fa0a1edf2d9b18361f5c528de.zip
-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 d6d05f5b..eaa16435 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -180,6 +180,8 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
bExplosionProof = true;
bBulletProof = true;
}
+
+ *(void**)this = (void*)0x600C1C;
}
@@ -1227,7 +1229,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
// In ProcessControl these will be re-normalized to ignore the tyre radius.
if(field_EF || m_phy_flagA80 ||
- GetModelIndex() == MI_DODO && (ent->m_status == STATUS_PHYSICS || ent->m_status == STATUS_SIMPLE)){
+ GetModelIndex() == MI_DODO && (ent->IsPed() || ent->IsVehicle())){
// don't do line collision
for(i = 0; i < 4; i++)
m_aSuspensionSpringRatio[i] = prevRatios[i];