summaryrefslogtreecommitdiffstats
path: root/src/vehicles/DamageManager.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 22:32:57 +0200
committeraap <aap@papnet.eu>2020-05-27 22:32:57 +0200
commit2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94 (patch)
tree8c6f2c1bb61493bd69643f811d91fdd6a5d6b8e9 /src/vehicles/DamageManager.cpp
parentlibrw update (diff)
downloadre3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar.gz
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar.bz2
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar.lz
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar.xz
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.tar.zst
re3-2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94.zip
Diffstat (limited to 'src/vehicles/DamageManager.cpp')
-rw-r--r--src/vehicles/DamageManager.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vehicles/DamageManager.cpp b/src/vehicles/DamageManager.cpp
index 6b59ccda..c625a4e7 100644
--- a/src/vehicles/DamageManager.cpp
+++ b/src/vehicles/DamageManager.cpp
@@ -11,7 +11,7 @@ CDamageManager::CDamageManager(void)
{
ResetDamageStatus();
m_fWheelDamageEffect = 0.75f;
- field_24 = 1;
+ field_18 = 1;
}
void
@@ -28,12 +28,8 @@ CDamageManager::FuckCarCompletely(void)
m_wheelStatus[0] = WHEEL_STATUS_MISSING;
// wheels 1-3 not reset?
- m_doorStatus[0] = DOOR_STATUS_MISSING;
- m_doorStatus[1] = DOOR_STATUS_MISSING;
- m_doorStatus[2] = DOOR_STATUS_MISSING;
- m_doorStatus[3] = DOOR_STATUS_MISSING;
- m_doorStatus[4] = DOOR_STATUS_MISSING;
- m_doorStatus[5] = DOOR_STATUS_MISSING;
+ for(i = 0; i < ARRAY_SIZE(m_doorStatus); i++)
+ m_doorStatus[i] = DOOR_STATUS_MISSING;
for(i = 0; i < 3; i++){
#ifdef FIX_BUGS