From be1ce929c712f44c75a6fbed9339f94f2ce60d54 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Tue, 24 Oct 2023 02:15:19 -0700 Subject: [PATCH] Fix time-increment overlap in prisons --- src/p_inter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/p_inter.c b/src/p_inter.c index 012d0717b..5b43e67d0 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -1082,16 +1082,17 @@ static void P_AddBrokenPrison(mobj_t *target, mobj_t *inflictor, mobj_t *source) S_StartSound(NULL, sfx_s221); if (timelimitintics) { - extratimeintics = 10*TICRATE; + UINT16 bonustime = 10*TICRATE; if (grandprixinfo.gp) { if (grandprixinfo.masterbots) - extratimeintics = 8*TICRATE; + bonustime = 8*TICRATE; else if (grandprixinfo.gamespeed == KARTSPEED_EASY) - extratimeintics = 15*TICRATE; + bonustime = 15*TICRATE; } + extratimeintics += bonustime; secretextratime = TICRATE/2; }