mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Don't call player_forceSave when gear menu is aborted
https://github.com/EpochModTeam/DayZ-Epoch/issues/1712#issuecomment-242992472
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
private ["_cTarget","_dis","_display","_friendlies","_rID"];
|
||||
|
||||
DZE_abortGearMenu = false;
|
||||
|
||||
// players inside vehicle can always access its gear
|
||||
if ((vehicle player) == player) then {
|
||||
disableSerialization;
|
||||
@@ -9,7 +11,8 @@ if ((vehicle player) == player) then {
|
||||
|
||||
if ((locked _cTarget) && {(_cTarget isKindOf "LandVehicle") or {_cTarget isKindOf "Air"} or {_cTarget isKindOf "Ship"}} && {(player distance _cTarget) < _dis}) then {
|
||||
localize "str_epoch_player_7" call dayz_rollingMessages;
|
||||
_display closeDisplay 1;
|
||||
DZE_abortGearMenu = true;
|
||||
_display closeDisplay 2;
|
||||
};
|
||||
|
||||
if (DZE_BackpackAntiTheft) then {
|
||||
@@ -17,7 +20,8 @@ if ((vehicle player) == player) then {
|
||||
_rID = if (DZE_permanentPlot) then { getPlayerUID _cTarget } else { _cTarget getVariable ["CharacterID","0"] };
|
||||
if ((!canbuild or isInTraderCity) && {_cTarget isKindOf "Man"} && {alive _cTarget} && {isPlayer _cTarget} && {!(_rID in _friendlies)} && {(player distance _cTarget) < 12}) then {
|
||||
localize "STR_EPOCH_PLAYER_316" call dayz_rollingMessages;
|
||||
_display closeDisplay 1;
|
||||
DZE_abortGearMenu = true;
|
||||
_display closeDisplay 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user