Merge branch 'ogl-ringshooter-face-sprite' into 'master'

Don't allow model rendering on Ring Shooter face overlay

Closes #960

See merge request KartKrew/Kart!1865
This commit is contained in:
Sal 2024-01-24 01:50:05 +00:00
commit 66ec978334

View file

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