Fix Map.GetSpawnPoints to return CPos.

This commit is contained in:
Paul Chote
2014-03-14 20:42:44 +13:00
parent 3392d00294
commit 63068d5a7c
4 changed files with 10 additions and 9 deletions

View File

@@ -228,12 +228,12 @@ namespace OpenRA
Uid = ComputeHash();
}
public int2[] GetSpawnPoints()
public CPos[] GetSpawnPoints()
{
return Actors.Value.Values
.Where(a => a.Type == "mpspawn")
.Select(a => a.InitDict.Get<LocationInit>().value)
.ToArray();
.Select(a => (CPos)a.InitDict.Get<LocationInit>().value)
.ToArray();
}
public void Save(string toPath)