Change DisabledSpawnPoints from List to HashSet

This commit is contained in:
abcdefg30
2020-11-13 19:27:31 +01:00
committed by abcdefg30
parent 6943cf5ad5
commit 77e85e7c58
5 changed files with 9 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Network
// Keyed by the PlayerReference id that the slot corresponds to
public Dictionary<string, Slot> Slots = new Dictionary<string, Slot>();
public List<int> DisabledSpawnPoints = new List<int>();
public HashSet<int> DisabledSpawnPoints = new HashSet<int>();
public Global GlobalSettings = new Global();
@@ -72,7 +72,7 @@ namespace OpenRA.Network
session.Slots.Add(s.PlayerReference, s);
break;
case "DisabledSpawnPoints":
session.DisabledSpawnPoints = FieldLoader.GetValue<List<int>>("DisabledSpawnPoints", node.Value.Value);
session.DisabledSpawnPoints = FieldLoader.GetValue<HashSet<int>>("DisabledSpawnPoints", node.Value.Value);
break;
}
}