summaryrefslogtreecommitdiffstats
path: root/src/vehicles/DamageManager.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-16 19:38:05 +0100
committeraap <aap@papnet.eu>2021-01-18 10:59:19 +0100
commita672860c401aa1ca179fce42e439c59f8d07f6d8 (patch)
tree50e4189f7b85a1d66c25c459eec40cdd551a5dce /src/vehicles/DamageManager.cpp
parentremove scriptspath from premake (diff)
downloadre3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.gz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.bz2
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.lz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.xz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.zst
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/DamageManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicles/DamageManager.cpp b/src/vehicles/DamageManager.cpp
index 8ba235b7..b74e7086 100644
--- a/src/vehicles/DamageManager.cpp
+++ b/src/vehicles/DamageManager.cpp
@@ -10,7 +10,8 @@ float G_aComponentDamage[] = { 2.5f, 1.25f, 3.2f, 1.4f, 2.5f, 2.8f, 0.5f };
CDamageManager::CDamageManager(void)
{
ResetDamageStatus();
- m_fWheelDamageEffect = 0.5f;
+ m_fWheelDamageEffect = 0.65f;
+ m_bSmashedDoorDoesntClose = false;
field_18 = 1;
}
@@ -136,6 +137,8 @@ void
CDamageManager::SetDoorStatus(int32 door, uint32 status)
{
m_doorStatus[door] = status;
+ if(m_bSmashedDoorDoesntClose && door != DOOR_BONNET && status == DOOR_STATUS_SMASHED)
+ m_doorStatus[door] = DOOR_STATUS_SWINGING;
}
int32