mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +00:00
- print a warning if a decal definition cannot find an animator.
This is important because DECALDEF cannot tentatively find animators declared after the decal.
This commit is contained in:
parent
aa8424982c
commit
4261a0c592
1 changed files with 4 additions and 0 deletions
|
@ -562,6 +562,10 @@ void FDecalLib::ParseDecal (FScanner &sc)
|
||||||
case DECAL_ANIMATOR:
|
case DECAL_ANIMATOR:
|
||||||
sc.MustGetString ();
|
sc.MustGetString ();
|
||||||
newdecal.Animator = FindAnimator (sc.String);
|
newdecal.Animator = FindAnimator (sc.String);
|
||||||
|
if (newdecal.Animator == nullptr)
|
||||||
|
{
|
||||||
|
sc.ScriptMessage("Unable to find animator %s", sc.String);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DECAL_LOWERDECAL:
|
case DECAL_LOWERDECAL:
|
||||||
|
|
Loading…
Reference in a new issue