diff options
author | aap <aap@papnet.eu> | 2020-05-27 22:32:57 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-27 22:32:57 +0200 |
commit | 2a1b9281e49685b6d5d3cf0770cfa0c3e15d1e94 (patch) | |
tree | 8c6f2c1bb61493bd69643f811d91fdd6a5d6b8e9 /src/vehicles/DamageManager.cpp | |
parent | librw update (diff) | |
download | re3-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 '')
-rw-r--r-- | src/vehicles/DamageManager.cpp | 10 |
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 |