Fix Ring Drain sectors for v2 rings

This commit is contained in:
wolfy852 2019-10-05 19:07:26 -05:00
parent fec68fd91c
commit 027dec6702

View file

@ -3637,10 +3637,9 @@ void P_ProcessSpecialSector(player_t *player, sector_t *sector, sector_t *rovers
break; break;
case 9: // Ring Drainer (Floor Touch) case 9: // Ring Drainer (Floor Touch)
case 10: // Ring Drainer (No Floor Touch) case 10: // Ring Drainer (No Floor Touch)
if (leveltime % (TICRATE/2) == 0 && player->mo->health > 1) if (leveltime % (TICRATE/2) == 0 && player->kartstuff[k_rings] > 0)
{ {
player->mo->health--; player->kartstuff[k_rings]--;
player->health--;
S_StartSound(player->mo, sfx_itemup); S_StartSound(player->mo, sfx_itemup);
} }
break; break;