Convert Waypoints to actors

This commit is contained in:
Paul Chote
2011-02-11 20:32:13 +13:00
parent 4a7be2e0c8
commit b134ba41f4
17 changed files with 114 additions and 146 deletions

View File

@@ -58,8 +58,8 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|| orderManager.LocalClient.State == Session.ClientState.Ready)
return false;
var p = map.Waypoints
.Select((sp, i) => Pair.New(mapPreview.ConvertToPreview(map, sp.Value), i))
var p = map.SpawnPoints
.Select((sp, i) => Pair.New(mapPreview.ConvertToPreview(map, sp), i))
.Where(a => (a.First - mi.Location).LengthSquared < 64)
.Select(a => a.Second + 1)
.FirstOrDefault();