mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Match final countdown timer to timer (resolves #400).
This commit is contained in:
parent
bc00380aa4
commit
ed0529b9d5
1 changed files with 5 additions and 5 deletions
|
@ -696,9 +696,9 @@ static void ST_drawTime(void)
|
|||
// Counting down the hidetime?
|
||||
if ((gametype == GT_TAG || gametype == GT_HIDEANDSEEK) && (stplyr->realtime <= (hidetime*TICRATE)))
|
||||
{
|
||||
tics = (hidetime*TICRATE - stplyr->realtime);
|
||||
if (tics < 3*TICRATE)
|
||||
ST_drawRaceNum(tics);
|
||||
tics = (hidetime*TICRATE + (TICRATE-1) - stplyr->realtime);
|
||||
if ((tics+1-TICRATE) < 3*TICRATE)
|
||||
ST_drawRaceNum(tics+1-TICRATE);
|
||||
downwards = true;
|
||||
}
|
||||
else
|
||||
|
@ -713,8 +713,8 @@ static void ST_drawTime(void)
|
|||
if (timelimitintics >= stplyr->realtime)
|
||||
{
|
||||
tics = (timelimitintics + (TICRATE-1) - stplyr->realtime);
|
||||
if (tics < 3*TICRATE)
|
||||
ST_drawRaceNum(tics);
|
||||
if ((tics+1-TICRATE) && (tics+1-TICRATE) < 3*TICRATE)
|
||||
ST_drawRaceNum(tics+1-TICRATE);
|
||||
}
|
||||
else // Overtime!
|
||||
tics = 0;
|
||||
|
|
Loading…
Reference in a new issue