diff options
author | aap <aap@papnet.eu> | 2019-07-18 21:41:20 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-18 21:41:20 +0200 |
commit | 9a7ce75c0371b4c35523a6c8872bba782a1eeb0b (patch) | |
tree | 66d5ff34dfa270334517385e6858c5d2fc8521e5 /src/vehicles/DamageManager.cpp | |
parent | CAutomobile::ProcessControl done (diff) | |
download | re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.gz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.bz2 re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.lz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.xz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.zst re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/DamageManager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vehicles/DamageManager.cpp b/src/vehicles/DamageManager.cpp index 380537f2..c4d16207 100644 --- a/src/vehicles/DamageManager.cpp +++ b/src/vehicles/DamageManager.cpp @@ -18,15 +18,15 @@ CDamageManager::FuckCarCompletely(void) { int i; - m_wheelStatus[0] = 2; + m_wheelStatus[0] = WHEEL_STATUS_MISSING; // wheels 1-3 not reset? - m_doorStatus[0] = 3; - m_doorStatus[1] = 3; - m_doorStatus[2] = 3; - m_doorStatus[3] = 3; - m_doorStatus[4] = 3; - m_doorStatus[5] = 3; + 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 < 3; i++){ #ifdef FIX_BUGS @@ -216,8 +216,8 @@ CDamageManager::ProgressEngineDamage(void) { int status = GetEngineStatus(); int newstatus = status + 32 + (CGeneral::GetRandomNumber() & 0x1F); - if(status < 225 && newstatus > 224) - newstatus = 224; + if(status < ENGINE_STATUS_ON_FIRE && newstatus > ENGINE_STATUS_ON_FIRE-1) + newstatus = ENGINE_STATUS_ON_FIRE-1; SetEngineStatus(newstatus); return true; } |