mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix time-increment overlap in prisons
This commit is contained in:
parent
80a9b5c3ec
commit
be1ce929c7
1 changed files with 4 additions and 3 deletions
|
|
@ -1082,16 +1082,17 @@ static void P_AddBrokenPrison(mobj_t *target, mobj_t *inflictor, mobj_t *source)
|
||||||
S_StartSound(NULL, sfx_s221);
|
S_StartSound(NULL, sfx_s221);
|
||||||
if (timelimitintics)
|
if (timelimitintics)
|
||||||
{
|
{
|
||||||
extratimeintics = 10*TICRATE;
|
UINT16 bonustime = 10*TICRATE;
|
||||||
|
|
||||||
if (grandprixinfo.gp)
|
if (grandprixinfo.gp)
|
||||||
{
|
{
|
||||||
if (grandprixinfo.masterbots)
|
if (grandprixinfo.masterbots)
|
||||||
extratimeintics = 8*TICRATE;
|
bonustime = 8*TICRATE;
|
||||||
else if (grandprixinfo.gamespeed == KARTSPEED_EASY)
|
else if (grandprixinfo.gamespeed == KARTSPEED_EASY)
|
||||||
extratimeintics = 15*TICRATE;
|
bonustime = 15*TICRATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extratimeintics += bonustime;
|
||||||
secretextratime = TICRATE/2;
|
secretextratime = TICRATE/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue