Instawhip cooldown: don't flicker dark frames while whip is still out

This commit is contained in:
James R 2023-08-19 04:58:55 -07:00
parent 2d7a224e8e
commit 3282a2581b

View file

@ -22,7 +22,7 @@ INT32 R_ThingLightLevel(mobj_t* thing)
if (player)
{
if (player->instaShieldCooldown && (player->rings <= 0) && (leveltime & 1))
if (player->instaShieldCooldown && !player->whip && (player->rings <= 0) && (leveltime & 1))
{
// Darken on every other frame of instawhip cooldown
lightlevel -= 128;