summaryrefslogtreecommitdiffstats
path: root/src/vehicles/DamageManager.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-02-23 00:08:12 +0100
committerGitHub <noreply@github.com>2020-02-23 00:08:12 +0100
commitff8fe7a261725c92f628ef07971a2eba38f5af18 (patch)
treee90bb131f188deae507206838c739845a5698e97 /src/vehicles/DamageManager.cpp
parentFix police radio condition (diff)
parentsome fixes (diff)
downloadre3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar.gz
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar.bz2
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar.lz
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar.xz
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.tar.zst
re3-ff8fe7a261725c92f628ef07971a2eba38f5af18.zip
Diffstat (limited to 'src/vehicles/DamageManager.cpp')
-rw-r--r--src/vehicles/DamageManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicles/DamageManager.cpp b/src/vehicles/DamageManager.cpp
index 3a7bd9e9..9a697b6b 100644
--- a/src/vehicles/DamageManager.cpp
+++ b/src/vehicles/DamageManager.cpp
@@ -119,7 +119,7 @@ CDamageManager::GetComponentGroup(tComponent component, tComponentGroup *compone
return true;
}else if(component >= COMPONENT_DEFAULT){
*componentGroup = COMPGROUP_DEFAULT;
- *subComp = component - COMPONENT_DEFAULT;
+ *subComp = COMPONENT_DEFAULT;
return true;
}else
return false;
@@ -141,7 +141,7 @@ bool
CDamageManager::ProgressDoorDamage(uint8 door)
{
int status = GetDoorStatus(door);
- if(status == 3)
+ if(status == PANEL_STATUS_MISSING)
return false;
SetDoorStatus(door, status+1);
return true;
@@ -163,7 +163,7 @@ bool
CDamageManager::ProgressPanelDamage(uint8 panel)
{
int status = GetPanelStatus(panel);
- if(status == 3)
+ if(status == DOOR_STATUS_MISSING)
return false;
SetPanelStatus(panel, status+1);
return true;
@@ -197,7 +197,7 @@ bool
CDamageManager::ProgressWheelDamage(uint8 wheel)
{
int status = GetWheelStatus(wheel);
- if(status == 3)
+ if(status == WHEEL_STATUS_MISSING)
return false;
SetWheelStatus(wheel, status+1);
return true;