Avoid importing spawn points with the same location.
This commit is contained in:
@@ -255,8 +255,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
.Select(kv => Pair.New(Exts.ParseIntegerInvariant(kv.Key),
|
||||
LocationFromMapOffset(Exts.ParseIntegerInvariant(kv.Value), MapSize)));
|
||||
|
||||
// Add waypoint actors
|
||||
foreach (var kv in wps)
|
||||
// Add waypoint actors skipping duplicate entries
|
||||
foreach (var kv in wps.DistinctBy(location => location.Second))
|
||||
{
|
||||
if (!singlePlayer && kv.First <= 7)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user