check for duplicate spawn point locations
This commit is contained in:
@@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user