Fix handleSafeGear not showing eyescan as it should. (#1875)

This fix makes it so that if the player used Eye Scan it will properly
show eyescan instead of the code.
This commit is contained in:
oiad
2017-01-15 13:53:51 +13:00
committed by ebayShopper
parent fd0b81118b
commit d68717c7be

View File

@@ -3,7 +3,7 @@ private ["_backpacks","_charID","_clientID","_dir","_holder","_lockCode","_lockC
_player = _this select 0;
_obj = _this select 1;
_status = _this select 2;
if (count _this > 3) then {_suppliedCode = _this select 3;};
_name = if (alive _player) then {name _player} else {"Dead Player"};
_type = typeOf _obj;
@@ -16,6 +16,11 @@ _objectUID = _obj getVariable ["ObjectUID","0"];
_ownerID = _obj getVariable ["ownerPUID","0"];
_lockCode = _charID;
if (count _this > 3) then {
_suppliedCode = _this select 3;
_lockCode = _suppliedCode;
};
// Player may have disconnected or died before message send. Attempt lock/unlock/pack/save procedure anyway
if (isNull _player) then {diag_log "ERROR: server_handleSafeGear called with Null player object";};