From cc0786d7805dcb6d14dd34aae25cc0f3a334c16b Mon Sep 17 00:00:00 2001 From: SteelT Date: Thu, 20 Jan 2022 03:20:53 -0500 Subject: [PATCH] Linedef type 460: Don't award rings while SPB-locked --- src/p_spec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index 61862df96..9f75cf135 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -3620,6 +3620,10 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec) INT32 delay = (sides[line->sidenum[0]].rowoffset>>FRACBITS); if (mo && mo->player) { + // Don't award rings while SPB is targetting you + if (mo->player->pflags & PF_RINGLOCK) + return; + if (delay <= 0 || !(leveltime % delay)) P_GivePlayerRings(mo->player, rings); }