mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-05-11 02:31:12 +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.
|
// Synchronizes the "real" amount of time spent in the level.
|
||||||
if (!player->exiting)
|
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())
|
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);
|
ST_drawRaceNum(hidetime*TICRATE - stplyr->realtime);
|
||||||
|
|
||||||
// Time limit?
|
// Time limit?
|
||||||
if (gametype == GT_RACE || gametype == GT_COMPETITION)
|
if (gametype != GT_COOP && gametype != GT_RACE && gametype != GT_COMPETITION && cv_timelimit.value && timelimitintics > 0)
|
||||||
{
|
|
||||||
if (stplyr->realtime >= 4*TICRATE)
|
|
||||||
tics = stplyr->realtime - 4*TICRATE;
|
|
||||||
else
|
|
||||||
tics = 0;
|
|
||||||
}
|
|
||||||
else if (gametype != GT_COOP && cv_timelimit.value && timelimitintics > 0)
|
|
||||||
{
|
{
|
||||||
if (timelimitintics >= stplyr->realtime)
|
if (timelimitintics >= stplyr->realtime)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue