P_PlayerRingBurst: check player->curshield directly

This commit is contained in:
James R 2023-11-14 20:32:22 -08:00 committed by NepDisk
parent ac2e10ecfb
commit 4586925da8

View file

@ -2415,7 +2415,7 @@ void P_PlayerRingBurst(player_t *player, INT32 num_rings)
return;
// Have a shield? You get hit, but don't lose your rings!
if (K_GetShieldFromItem(player->itemtype) != KSHIELD_NONE)
if (player->curshield != KSHIELD_NONE)
return;
// 20 is the maximum number of rings that can be taken from you at once - half the span of your counter