P_PlayerRingBurst: check player->curshield directly, handles Garden Top correctly

This commit is contained in:
James R 2023-11-14 20:32:22 -08:00
parent bfe3e72d3c
commit cd2219f605

View file

@ -3360,7 +3360,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