fix issues with mpspawn and waypoint sprites

This commit is contained in:
Chris Forbes
2011-02-15 16:09:53 +13:00
parent 2b85c7e0b9
commit 5bd9273a7d
11 changed files with 59 additions and 6 deletions

View File

@@ -339,8 +339,9 @@ namespace OpenRA.Editor
Map.Bounds.Height * TileSet.TileSize * Zoom);
foreach (var ar in Map.Actors.Value)
DrawActor(e.Graphics, ar.Value.Location(), ActorTemplates[ar.Value.Type],
GetPaletteForActor(ar.Value));
if (ActorTemplates.ContainsKey(ar.Value.Type))
DrawActor(e.Graphics, ar.Value.Location(), ActorTemplates[ar.Value.Type],
GetPaletteForActor(ar.Value));
if (Tool != null)
Tool.Preview(this, e.Graphics);