mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Merge branch 'finalcountdown' into 'master'
The final countdown (resolves #400). Closes #400 See merge request STJr/SRB2Internal!574
This commit is contained in:
commit
6bbc412eac
1 changed files with 4 additions and 2 deletions
|
@ -699,6 +699,7 @@ static void ST_drawTime(void)
|
|||
tics = (hidetime*TICRATE - stplyr->realtime);
|
||||
if (tics < 3*TICRATE)
|
||||
ST_drawRaceNum(tics);
|
||||
tics += (TICRATE-1); // match the race num
|
||||
downwards = true;
|
||||
}
|
||||
else
|
||||
|
@ -710,11 +711,12 @@ static void ST_drawTime(void)
|
|||
// Time limit?
|
||||
if (gametype != GT_COOP && gametype != GT_RACE && gametype != GT_COMPETITION && cv_timelimit.value && timelimitintics > 0)
|
||||
{
|
||||
if (timelimitintics >= stplyr->realtime)
|
||||
if (timelimitintics > stplyr->realtime)
|
||||
{
|
||||
tics = (timelimitintics + (TICRATE-1) - stplyr->realtime);
|
||||
tics = (timelimitintics - stplyr->realtime);
|
||||
if (tics < 3*TICRATE)
|
||||
ST_drawRaceNum(tics);
|
||||
tics += (TICRATE-1); // match the race num
|
||||
}
|
||||
else // Overtime!
|
||||
tics = 0;
|
||||
|
|
Loading…
Reference in a new issue