mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
So MI tells me there's a good reason why that was not done. :V
This commit is contained in:
parent
3f7ffc61a5
commit
01dfe31c3c
2 changed files with 12 additions and 9 deletions
12
src/p_user.c
12
src/p_user.c
|
@ -9711,7 +9711,17 @@ void P_PlayerThink(player_t *player)
|
|||
|
||||
// Synchronizes the "real" amount of time spent in the level.
|
||||
if (!player->exiting)
|
||||
player->realtime = leveltime;
|
||||
{
|
||||
if (gametype == GT_RACE || gametype == GT_COMPETITION)
|
||||
{
|
||||
if (leveltime >= 4*TICRATE)
|
||||
player->realtime = leveltime - 4*TICRATE;
|
||||
else
|
||||
player->realtime = 0;
|
||||
}
|
||||
else
|
||||
player->realtime = leveltime;
|
||||
}
|
||||
|
||||
if (player->spectator && cmd->buttons & BT_ATTACK && !player->powers[pw_flashing] && G_GametypeHasSpectators())
|
||||
{
|
||||
|
|
|
@ -679,14 +679,7 @@ static void ST_drawTime(void)
|
|||
ST_drawRaceNum(hidetime*TICRATE - stplyr->realtime);
|
||||
|
||||
// Time limit?
|
||||
if (gametype == GT_RACE || gametype == GT_COMPETITION)
|
||||
{
|
||||
if (stplyr->realtime >= 4*TICRATE)
|
||||
tics = stplyr->realtime - 4*TICRATE;
|
||||
else
|
||||
tics = 0;
|
||||
}
|
||||
else if (gametype != GT_COOP && cv_timelimit.value && timelimitintics > 0)
|
||||
if (gametype != GT_COOP && gametype != GT_RACE && gametype != GT_COMPETITION && cv_timelimit.value && timelimitintics > 0)
|
||||
{
|
||||
if (timelimitintics >= stplyr->realtime)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue