Fix tutorial items spawning as holograms

This commit is contained in:
AJ Martinez 2024-01-04 14:49:32 -07:00
parent 6a241772fc
commit eddeb0d568

View file

@ -153,7 +153,7 @@ boolean Obj_RandomItemSpawnIn(mobj_t *mobj)
{
if (battleprisons == true)
{
mobj->renderflags &= ~PREVIEWFLAGS; // Set in Obj_RandomItemSpawn, unset now that we're playing proper.
;
}
else
{
@ -166,6 +166,10 @@ boolean Obj_RandomItemSpawnIn(mobj_t *mobj)
}
}
// Clear "hologram" appearance if it was set in RandomItemSpawn.
if ((gametyperules & GTR_CIRCUIT) != GTR_CIRCUIT)
mobj->renderflags &= ~PREVIEWFLAGS;
// poof into existance
P_UnsetThingPosition(mobj);
mobj->flags &= ~(MF_NOCLIPTHING|MF_NOBLOCKMAP);