Fix publicVariableEval kicks from RNG fail

RNG can be a cruel mistress.
Fixes: Value Restriction #121 "PVDZE_veh_Publish2" =
[[99,[4763.93,7521.36,-0.000228882]],"CSJ_GyroCover",false,"ItemKeyBlack958",<NULL-object>,"iN4r7X7Psetsq"]

Thanks @AirwavesMan
This commit is contained in:
oiad
2018-01-18 22:37:38 +13:00
parent 3c4e12149a
commit b5f3f306de
3 changed files with 4 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
[FIXED] Combo locks could be duplicated by two players removing them at the same time (564e3da)
[FIXED] Bush b_corylus.p3d allowed chopping down for wood like a tree (42e519a)
[FIXED] Player could shoot during unconscious wake up animation (634a01a)
[FIXED] publicVariableEval kicks from the evil RNG god @oiad @AirwavesMan
[UPDATED] Spawning of Zombies and Loot in Safe Zones can now be toggled, disabled by default, see configVariables.sqf/DZE_SafeZoneZombieLoot (6248add, 141b25e) @oiad @_Lance_
[UPDATED] Added notification when status icons are disabled

View File

@@ -221,7 +221,6 @@ _randomInput = toArray "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
for "_i" from 0 to 12 do {
_randomKey set [count _randomKey, (_randomInput call BIS_fnc_selectRandom)];
};
_randomKey = toString _randomKey;
_findIndex = dayz_serverPUIDArray find _playerID;
if (_findIndex > -1) then {
dayz_serverClientKeys set [_findIndex, [_clientID,_randomKey]];
@@ -248,4 +247,4 @@ if (count _inventory > 2) then {
[_playerID,_characterID,1,(_playerObj call fa_plr2str),((_worldspace select 1) call fa_coor2str)] call dayz_recordLogin;
PVDZ_plr_Login1 = null;
PVDZ_plr_Login2 = null;
PVDZ_plr_Login2 = null;

View File

@@ -26,10 +26,10 @@ _exitReason = switch true do {
case (_index < 0): {
format["%1 error: PUID NOT FOUND ON SERVER. PV ARRAY: %2",_function,_params]
};
case (((dayz_serverClientKeys select _index) select 0 != owner _player) or ((dayz_serverClientKeys select _index) select 1 != _clientKey)): {
case (((dayz_serverClientKeys select _index) select 0 != owner _player) or !([((dayz_serverClientKeys select _index) select 1),_clientKey] call BIS_fnc_areEqual)): {
format["%1 error: CLIENT AUTH KEY INCORRECT OR UNRECOGNIZED. PV ARRAY: %2",_function,_params]
};
default {""};
};
_exitReason
_exitReason