handle freeze in decoupled animations

This commit is contained in:
Ricardo Luís Vaz Silva 2024-07-07 10:54:49 -03:00
commit 7ddd4ec245
4 changed files with 21 additions and 7 deletions

View file

@ -1453,7 +1453,7 @@ FSerializer &Serialize(FSerializer &arc, const char *key, struct AnimOverride &a
arc("flags", ao.flags);
arc("framerate", ao.framerate);
arc("startTic", ao.startTic);
arc("switchTic", ao.switchTic);
arc("switchOffset", ao.switchOffset);
arc.EndObject();
return arc;
}
@ -3861,6 +3861,12 @@ void AActor::Tick ()
{
special2++;
}
if(flags9 & MF9_DECOUPLEDANIMATIONS && modelData && !(modelData->curAnim.flags & ANIMOVERRIDE_NONE))
{
modelData->curAnim.startTic += 1;
}
return;
}
@ -3908,6 +3914,12 @@ void AActor::Tick ()
{
special2++;
}
if(flags9 & MF9_DECOUPLEDANIMATIONS && modelData && !(modelData->curAnim.flags & ANIMOVERRIDE_NONE))
{
modelData->curAnim.startTic += 1;
}
return;
}