Merge pull request #743 from Ignatz-HeMan/patch-6

Fix if only HitPointDamage > 0
This commit is contained in:
vbawol 2017-04-17 09:18:44 -07:00 committed by GitHub
commit f88ab84b30

View File

@ -54,7 +54,7 @@ _allHitPointsDamage = getAllHitPointsDamage _vehicle;
};
} foreach (_allHitPointsDamage select 0);
if (_allRepaired) then {
if ((damage _vehicle) > 0) then {
if ((damage _vehicle) > 0 || {_x > 0} count ((getallhitpointsdamage _vehicle) select 2) > 0) then {
[_vehicle,["ALL",0],player,Epoch_personalToken] remoteExec ["EPOCH_server_repairVehicle",2];
};
_pos = getposatl _vehicle;