Move creeps configuration to rules.

This commit is contained in:
Paul Chote
2016-02-29 20:41:16 +00:00
parent 3c779d4101
commit cce292a68a
7 changed files with 40 additions and 5 deletions

View File

@@ -545,7 +545,8 @@ namespace OpenRA.Mods.Common.Server
return true;
}
if (server.Map.Options.Creeps.HasValue)
var mapCreeps = server.Map.Rules.Actors["world"].TraitInfoOrDefault<MapCreepsInfo>();
if (mapCreeps == null || mapCreeps.Locked)
{
server.SendOrderTo(conn, "Message", "Map has disabled Creeps spawning configuration.");
return true;