diff --git a/OpenRA.Mods.Common/Lint/CheckPlayers.cs b/OpenRA.Mods.Common/Lint/CheckPlayers.cs index 38bf0de4a9..392d62b794 100644 --- a/OpenRA.Mods.Common/Lint/CheckPlayers.cs +++ b/OpenRA.Mods.Common/Lint/CheckPlayers.cs @@ -92,8 +92,9 @@ namespace OpenRA.Mods.Common.Lint if (playerCount > spawnPoints.Length) emitError($"The map allows {playerCount} possible players, but defines only {spawnPoints.Length} spawn points."); - if (spawnPoints.Distinct().Count() != spawnPoints.Length) - emitError("Duplicate spawn point locations detected."); + foreach (var spawn in spawnPoints.GroupBy(x => x)) + if (spawn.Count() > 1) + emitError($"Duplicate spawn point location detected at `{spawn.Key}`."); } } }