Fix damage on vehicles

Thx to mmrsz for letting me know
This commit is contained in:
AirwavesMan
2021-04-06 15:49:11 +02:00
parent 34143e05b6
commit 0ee3f345b5
2 changed files with 2 additions and 3 deletions

View File

@@ -44,8 +44,6 @@ if (_isNotOk) exitWith {
//deleteVehicle _object;
};
_object setVariable ["lastUpdate",diag_ticktime,true];
call {
if (_type == "all") exitwith {
[_object,_objectID,_class] call server_obj_pos;
@@ -75,4 +73,4 @@ call {
[_object,_objectID,_objectUID,_class] call server_obj_inv;
};
"";
};
};

View File

@@ -101,6 +101,7 @@ server_obj_dam = {
//diag_log format["DEBUG: Monitoring: %1",_object];
needUpdate_objects set [count needUpdate_objects, _object];
_recorddmg = true;
_object setVariable ["lastUpdate",diag_ticktime];
};
};
};