check if the neutral player is set up correctly

This commit is contained in:
Matthias Mailänder
2015-05-31 09:44:50 +02:00
parent 7186f654d7
commit 3167ca48ff
14 changed files with 4 additions and 21 deletions

View File

@@ -32,6 +32,8 @@ namespace OpenRA.Mods.Common.Lint
if (!playerNames.Contains(enemy))
emitError("Enemies contains player {0} that is not in list.".F(enemy));
if (player.OwnsWorld && (player.Enemies.Any() || player.Allies.Any()))
emitWarning("The player {0} owning the world should not have any allies or enemies.".F(player.Name));
}
var worldActor = map.Rules.Actors["world"];