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:
ebaydayz
2016-09-19 20:21:27 -04:00
parent b9ec6df95e
commit ac95c6b0df
3 changed files with 10 additions and 8 deletions

View File

@@ -1,7 +1,8 @@
private "_friends";
private ["_friends","_name"];
lbClear 7102;
lbClear 7102;
_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;