Add a sequence reference attribute to label fallbacks.

This commit is contained in:
Matthias Mailänder
2020-05-17 14:45:51 +02:00
committed by teinarss
parent 336656e8f7
commit 3a427c3630
4 changed files with 12 additions and 4 deletions

View File

@@ -82,6 +82,12 @@ namespace OpenRA.Mods.Common.Lint
{
if (string.IsNullOrEmpty(imageOverride))
{
if (!sequenceReference.ActorNameFallback)
{
emitWarning("Custom sprite image of actor {0} is null and there is no fallback.".F(actorInfo.Value.Name));
continue;
}
foreach (var sequenceProvider in sequenceProviders)
{
var image = renderInfo.GetImage(actorInfo.Value, sequenceProvider, faction);