Log a message when trying to render a nonexistent actor in the editor
This commit is contained in:
@@ -345,6 +345,8 @@ namespace OpenRA.Editor
|
|||||||
if (ActorTemplates.ContainsKey(ar.Value.Type))
|
if (ActorTemplates.ContainsKey(ar.Value.Type))
|
||||||
DrawActor(e.Graphics, ar.Value.Location(), ActorTemplates[ar.Value.Type],
|
DrawActor(e.Graphics, ar.Value.Location(), ActorTemplates[ar.Value.Type],
|
||||||
GetPaletteForActor(ar.Value));
|
GetPaletteForActor(ar.Value));
|
||||||
|
else
|
||||||
|
Console.WriteLine("Warning: Unknown or excluded actor: {0}", ar.Value.Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShowActorNames)
|
if (ShowActorNames)
|
||||||
|
|||||||
Reference in New Issue
Block a user