Fix for palette flashing still occurring in OpenGL when reducevfx is enabled.

This commit is contained in:
FreakyMutantMan 2025-09-14 13:39:18 -07:00
parent f4dd4a1be7
commit 5c8a1b8fb1

View file

@ -15580,7 +15580,7 @@ mobj_t *P_SPMAngle(mobj_t *source, mobjtype_t type, angle_t angle, UINT8 allowai
//
void P_FlashPal(player_t *pl, UINT16 type, UINT16 duration)
{
if (!pl)
if (!pl || cv_reducevfx.value)
return;
pl->flashcount = duration;
pl->flashpal = type;