check for duplicate spawn point locations

This commit is contained in:
Matthias Mailänder
2015-05-13 15:27:24 +02:00
parent bb08537c44
commit a943fbc94e

View File

@@ -47,6 +47,9 @@ namespace OpenRA.Mods.Common.Lint
if (multiPlayers > spawnCount) if (multiPlayers > spawnCount)
emitError("The map allows {0} possible players, but defines only {1} spawn points".F(multiPlayers, spawnCount)); emitError("The map allows {0} possible players, but defines only {1} spawn points".F(multiPlayers, spawnCount));
if (map.SpawnPoints.Value.Distinct().Count() != spawnCount)
emitError("Duplicate spawn point locations detected.");
} }
} }
} }