Don't fuck with the fuse if it's negative

This commit is contained in:
Tatsuru 2020-01-05 23:41:22 -03:00
parent fce1313517
commit 07f9ddc45a
1 changed files with 2 additions and 0 deletions

View File

@ -7986,6 +7986,8 @@ static void P_MobjSceneryThink(mobj_t *mobj)
P_RemoveMobj(mobj);
return;
}
if (mobj->fuse < 0)
return;
if ((--mobj->fuse) < 6)
mobj->frame = (mobj->frame & ~FF_TRANSMASK) | ((10 - (mobj->fuse*2)) << (FF_TRANSSHIFT));
}