Remove SQF Based Duplicate UID Fix

Use the new DLL
This commit is contained in:
icomrade
2016-07-17 10:52:40 -04:00
parent 42db0a9108
commit c702d92231
2 changed files with 0 additions and 11 deletions

View File

@@ -224,16 +224,6 @@ dayz_objectUID2 = {
_key = _key + str(round(_dir));
};
};
// Make sure the generated key is not a duplicate
while {true} do {
if !(_key in currentObjectUIDs) exitWith {currentObjectUIDs set [count currentObjectUIDs,_key];};
keyStartNumber = keyStartNumber + 1;
if (keyStartNumber > 40000) exitWith { //Should never fail more times than total number of objects in database
diag_log format["ERROR: dayz_objectUID2 failed to correct duplicate objectUID: %1. This should not happen.",_key];
};
_key = str keyStartNumber;
diag_log format["Duplicate UID generated by dayz_objectUID2. Automatically corrected to +1= %1. This should rarely happen.",_key];
};
_key
};

View File

@@ -67,7 +67,6 @@ if (_status == "ObjectStreamStart") then {
_hitPoints = if ((typeName (_x select 6)) == "ARRAY") then { _x select 6 } else { [] };
_fuel = if ((typeName (_x select 7)) == "SCALAR") then { _x select 7 } else { 0 };
_damage = if ((typeName (_x select 8)) == "SCALAR") then { _x select 8 } else { 0.9 };
_worldspace call dayz_objectUID2; // Set objectUIDs in currentObjectUIDs list to prevent duplicates
//set object to be in maintenance mode
_maintenanceMode = false;