Check for SPR2_SIGN, SPR2_SIGL and SPR2_TALK as well

This commit is contained in:
SteelT 2024-01-22 22:40:38 -05:00
parent 626d39870b
commit 488386db68

View file

@ -1185,12 +1185,8 @@ static void HWR_GetBlendedTexture(patch_t *patch, patch_t *blendpatch, INT32 ski
static boolean HWR_AllowModel(mobj_t *mobj) static boolean HWR_AllowModel(mobj_t *mobj)
{ {
// Signpost overlay. Not needed. // Don't allow rendering of model for these.
if (mobj->state-states == S_KART_SIGN) if (mobj->sprite2 == SPR2_XTRA || mobj->sprite2 == SPR2_SIGN || mobj->sprite2 == SPR2_SIGL || mobj->sprite2 == SPR2_TALK)
return false;
// Ring Shooter face overlay, don't allow.
if (mobj->sprite2 == SPR2_XTRA)
return false; return false;
// Otherwise, render the model. // Otherwise, render the model.