From 236651caa7ef485c4e481b8aff2aa67a0a883f66 Mon Sep 17 00:00:00 2001 From: He-Man Date: Tue, 13 Dec 2016 19:56:13 +0100 Subject: [PATCH] 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 --- .../compile/epoch_vehicle/EPOCH_server_save_vehicle.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_vehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_vehicle.sqf index 24a01519..8b286c16 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_vehicle.sqf @@ -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 {