Linedef type 460: ACTUALLY don't push your rings below baseline

This commit is contained in:
toaster 2023-07-19 22:54:05 +01:00
parent ba7307b425
commit c404e704c2

View file

@ -4199,10 +4199,13 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
else
{
// Don't push you below baseline
if (mo->player->rings < 0)
if (mo->player->rings <= 0)
return false;
mo->player->rings--;
if (rings > mo->player->rings)
rings = mo->player->rings;
mo->player->rings -= rings;
S_StartSound(mo, sfx_antiri);
}
}