mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Revert the last two commits
This reverts commitsb5f3f30and3e0ddef. Discussed with oiad on discord: - BIS_fnc_areEqual is much slower than short string comparisons - String in array form is three times longer, which means more data sent over the network This way keeps authKey as a string and still avoids pvval kicks.
This commit is contained in:
@@ -26,7 +26,7 @@ _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] call BIS_fnc_areEqual)): {
|
||||
case (((dayz_serverClientKeys select _index) select 0 != owner _player) or ((dayz_serverClientKeys select _index) select 1 != _clientKey)): {
|
||||
format["%1 error: CLIENT AUTH KEY INCORRECT OR UNRECOGNIZED. PV ARRAY: %2",_function,_params]
|
||||
};
|
||||
default {""};
|
||||
|
||||
Reference in New Issue
Block a user