So MI tells me there's a good reason why that was not done. :V

This commit is contained in:
toaster 2018-06-06 21:48:27 +01:00
parent 3f7ffc61a5
commit 01dfe31c3c
2 changed files with 12 additions and 9 deletions

View File

@ -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())
{

View File

@ -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)
{