From 64ab44c3ea0920ec95849da24ca019f4ce751306 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 27 Jul 2011 03:37:15 +1200 Subject: [PATCH] Log a message when trying to render a nonexistent actor in the editor --- OpenRA.Editor/Surface.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Editor/Surface.cs b/OpenRA.Editor/Surface.cs index e4150c825a..8a8968e268 100755 --- a/OpenRA.Editor/Surface.cs +++ b/OpenRA.Editor/Surface.cs @@ -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)