Skip saving already killed Vehicles

Server was deleting the Vehicle from DB and after hit is triggered, saved it again into DB with damage 1
This commit is contained in:
He-Man 2016-12-13 19:56:13 +01:00 committed by GitHub
parent fa834cebe4
commit 236651caa7

View File

@ -17,7 +17,7 @@ params [["_vehicle",objNull]];
if (!isNull _vehicle) then {
// if (!alive _vehicle) exitWith {diag_log format["DEBUG DEAD VEHICLE SKIPPED SAVE: %1 %2", _vehicle]};
if (!alive _vehicle) exitWith {diag_log format["DEBUG DEAD VEHICLE SKIPPED SAVE: %1 %2", _vehicle]};
_vehSlot = _vehicle getVariable["VEHICLE_SLOT", "ABORT"];
if (_vehSlot != "ABORT") then {