Reorganize PlayerReference loading to enable upgrade rules for them.
The PlayerReference definitions are now stored as raw MiniYamlNodes in the map.
This commit is contained in:
@@ -297,7 +297,8 @@ namespace OpenRA.Mods.D2k.UtilityCommands
|
||||
return null;
|
||||
|
||||
map.RequiresMod = mod;
|
||||
map.MakeDefaultPlayers();
|
||||
var players = new MapPlayers(map.Rules, map.GetSpawnPoints().Length);
|
||||
map.PlayerDefinitions = players.ToMiniYaml();
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user