Fix time-increment overlap in prisons

This commit is contained in:
AJ Martinez 2023-10-24 02:15:19 -07:00
parent 80a9b5c3ec
commit be1ce929c7

View file

@ -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;
}