Don't show item box preview holograms if they aren't going to spawn

This commit is contained in:
AJ Martinez 2024-01-06 01:08:26 -07:00
parent cb11627bb5
commit 0cd3c26b8b

View file

@ -147,6 +147,10 @@ void Obj_RandomItemVisuals(mobj_t *mobj)
boolean Obj_RandomItemSpawnIn(mobj_t *mobj)
{
// battleprisons isn't set in time to do this on spawn. GROAN
if ((mobj->flags2 & MF2_BOSSFLEE) && (gametyperules & GTR_BUMPERS) && !battleprisons)
mobj->renderflags |= RF_DONTDRAW;
if ((leveltime == starttime) && !(gametyperules & GTR_CIRCUIT) && (mobj->flags2 & MF2_BOSSFLEE)) // here on map start?
{
if (gametyperules & GTR_PAPERITEMS)