From c404e704c249a3af4c774d67e89de3be13be1b96 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 19 Jul 2023 22:54:05 +0100 Subject: [PATCH] Linedef type 460: ACTUALLY don't push your rings below baseline --- src/p_spec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 0a8f74b15..8c7ef332a 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -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); } }