mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 10:11:51 +03:00
Make plot and door friends lists backwards compatible
This prevents errors when upgrading 1051 databases that had plot or door
management installed.
See comments at:
fe9b8fdcb4
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
private "_friends";
|
private ["_friends","_name"];
|
||||||
|
|
||||||
lbClear 7102;
|
lbClear 7102;
|
||||||
_friends = TheDoor getVariable ["doorfriends",[]];
|
_friends = TheDoor getVariable ["doorfriends",[]];
|
||||||
{
|
{
|
||||||
lbAdd [7102, toString (_x select 1)];
|
_name = _x select 1;
|
||||||
|
lbAdd [7102, if (typeName _name == "ARRAY") then {toString _name} else {_name}];
|
||||||
} forEach _friends;
|
} forEach _friends;
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
private ["_plots","_friendlies","_thePlot"];
|
private ["_name","_plots","_friendlies","_thePlot"];
|
||||||
|
|
||||||
lbClear 7002;
|
lbClear 7002;
|
||||||
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
||||||
_thePlot = _plots select 0;
|
_thePlot = _plots select 0;
|
||||||
_friendlies = _thePlot getVariable ["plotfriends", []];
|
_friendlies = _thePlot getVariable ["plotfriends", []];
|
||||||
{
|
{
|
||||||
lbAdd [7002, toString (_x select 1)];
|
_name = _x select 1;
|
||||||
|
lbAdd [7002, if (typeName _name == "ARRAY") then {toString _name} else {_name}];
|
||||||
} forEach _friendlies;
|
} forEach _friendlies;
|
||||||
Reference in New Issue
Block a user