From a943fbc94e08b45ad7ab15ae317a6b432a3b01b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 13 May 2015 15:27:24 +0200 Subject: [PATCH] check for duplicate spawn point locations --- OpenRA.Mods.Common/Lint/CheckPlayers.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Lint/CheckPlayers.cs b/OpenRA.Mods.Common/Lint/CheckPlayers.cs index c1c093b770..8d6a086125 100644 --- a/OpenRA.Mods.Common/Lint/CheckPlayers.cs +++ b/OpenRA.Mods.Common/Lint/CheckPlayers.cs @@ -47,6 +47,9 @@ namespace OpenRA.Mods.Common.Lint if (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."); } } }