Revert unnecessary change from #1747

https://github.com/EpochModTeam/DayZ-Epoch/pull/1747#issuecomment-241802114
This commit is contained in:
ebaydayz
2016-08-23 13:12:01 -04:00
parent 29acecc2f2
commit 81473754f9
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ _friends = TheDoor getVariable ["doorfriends",[]];
_toAdd = [_friendUID,toArray _friendName]; _toAdd = [_friendUID,toArray _friendName];
_inList = false; _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 (_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]; }; if ((count _friends) == DZE_doorManagementMaxFriends) exitWith { systemChat format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_doorManagementMaxFriends]; };

View File

@@ -15,7 +15,7 @@ _friends = _thePlot getVariable ["plotfriends",[]];
_toAdd = [_friendUID,toArray _friendName]; _toAdd = [_friendUID,toArray _friendName];
_inList = false; _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 (_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]; }; if ((count _friends) == DZE_MaxPlotFriends) exitWith { systemChat format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_MaxPlotFriends]; };