Log a message when trying to render a nonexistent actor in the editor

This commit is contained in:
Paul Chote
2011-07-27 03:37:15 +12:00
parent d98649e7e1
commit 64ab44c3ea

View File

@@ -345,6 +345,8 @@ namespace OpenRA.Editor
if (ActorTemplates.ContainsKey(ar.Value.Type))
DrawActor(e.Graphics, ar.Value.Location(), ActorTemplates[ar.Value.Type],
GetPaletteForActor(ar.Value));
else
Console.WriteLine("Warning: Unknown or excluded actor: {0}", ar.Value.Type);
}
if (ShowActorNames)