remove useless 'map' arg on ConvertToPreview

This commit is contained in:
Chris Forbes
2011-10-18 20:55:49 +13:00
parent eddc4cc4b1
commit 7161b8062e
3 changed files with 5 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
return;
var p = Map.GetSpawnPoints()
.Select((sp, i) => Pair.New(mapPreview.ConvertToPreview(Map, sp), i))
.Select((sp, i) => Pair.New(mapPreview.ConvertToPreview(sp), i))
.Where(a => (a.First - mi.Location).LengthSquared < 64)
.Select(a => a.Second + 1)
.FirstOrDefault();