Don't retransform random items

This commit is contained in:
AJ Martinez 2023-10-19 14:52:53 -07:00
parent 2ab6710e29
commit 52c569c0ee

View file

@ -125,6 +125,11 @@ void Obj_RandomItemVisuals(mobj_t *mobj)
{
mobj->extravalue1++;
// Don't transform stuff that isn't a Ring Box, idiot
statenum_t boxstate = mobj->state - states;
if (boxstate >= S_RANDOMITEM1 && boxstate <= S_RANDOMITEM12)
return;
if (mobj->extravalue1 == RINGBOX_TIME || specialstageinfo.valid)
{
// Sync the position in RINGBOX and RANDOMITEM animations.