Correct duplicate object UID check

I forgot numbers greater than 1 million are truncated when converted to
string:

http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/

KeyStartNumber exceeded 6 digits which is why it was being truncated to
"1e+011" and getting stuck on loop (as that string was already in
currentObjectUIDs) as mentioned in 2df7279.

Starting at 10, there should never be more than a couple duplicates
generated, so keyStartNumber will never exceed about 100 max.  Added an
exit just for a fail safe.
This commit is contained in:
ebaydayz
2016-05-16 11:52:45 -04:00
parent 116caaa788
commit 65233757e8
2 changed files with 4 additions and 1 deletions

View File

@@ -555,7 +555,7 @@ if (isServer) then {
// EPOCH ADDITIONS
currentObjectUIDs = [];
keyStartNumber = 100000000000;
keyStartNumber = 10; // Can not exceed 6 digits. Numbers >= 1 million are truncated when converted to string. i.e. "1e+006"
DZE_safeVehicle = ["ParachuteWest","ParachuteC"];
if (isNil "EpochUseEvents") then {EpochUseEvents = false;};
if (isNil "EpochEvents") then {EpochEvents = [];};