Fix if only HitPointDamage > 0

Important, when using SafeZones with VehicleGodmode and only HitPoint is damaged.
This commit is contained in:
He-Man 2017-04-10 16:38:54 +02:00 committed by GitHub
parent d8f58c0a03
commit b2fbd6ef91

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;