From 81473754f9f904309a2729b992cc912a6683bb93 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 23 Aug 2016 13:12:01 -0400 Subject: [PATCH] Revert unnecessary change from #1747 https://github.com/EpochModTeam/DayZ-Epoch/pull/1747#issuecomment-241802114 --- SQF/dayz_code/actions/doorManagement/doorAddFriend.sqf | 2 +- SQF/dayz_code/actions/plotManagement/plotAddFriend.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/doorManagement/doorAddFriend.sqf b/SQF/dayz_code/actions/doorManagement/doorAddFriend.sqf index 019188cee..9a7ce66c7 100644 --- a/SQF/dayz_code/actions/doorManagement/doorAddFriend.sqf +++ b/SQF/dayz_code/actions/doorManagement/doorAddFriend.sqf @@ -12,7 +12,7 @@ _friends = TheDoor getVariable ["doorfriends",[]]; _toAdd = [_friendUID,toArray _friendName]; _inList = false; -{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; false } count _friends; +{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; } count _friends; if (_inList) exitWith { systemChat localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_ALREADYONTHELIST"; }; if ((count _friends) == DZE_doorManagementMaxFriends) exitWith { systemChat format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_doorManagementMaxFriends]; }; diff --git a/SQF/dayz_code/actions/plotManagement/plotAddFriend.sqf b/SQF/dayz_code/actions/plotManagement/plotAddFriend.sqf index 5067e8eb7..310604b7c 100644 --- a/SQF/dayz_code/actions/plotManagement/plotAddFriend.sqf +++ b/SQF/dayz_code/actions/plotManagement/plotAddFriend.sqf @@ -15,7 +15,7 @@ _friends = _thePlot getVariable ["plotfriends",[]]; _toAdd = [_friendUID,toArray _friendName]; _inList = false; -{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; false } count _friends; +{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; } count _friends; if (_inList) exitWith { systemChat localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_ALREADYONTHELIST"; }; if ((count _friends) == DZE_MaxPlotFriends) exitWith { systemChat format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_MaxPlotFriends]; };