Prevent duplicate objectUIDs

See #1504 for the details
This commit is contained in:
ebaydayz
2016-02-24 12:31:13 -05:00
parent 9bbeb1e43e
commit ff4a227a1d
5 changed files with 19 additions and 4 deletions

View File

@@ -96,6 +96,9 @@ if (isServer && isNil "sm_done") then {
_fuel = _x select 7;
_damage = _x select 8;
// Set objectUIDs in currentObjectUIDs list to prevent duplicates
if (_type in dayz_allowedObjects) then {_worldspace call dayz_objectUID2;} else {_worldspace call dayz_objectUID3;};
_dir = 0;
_pos = [0,0,0];
_wsDone = false;