Merge branch 'bot-realtime-fix' into 'master'

Bot `realtime` fix

See merge request KartKrew/Kart!874
This commit is contained in:
Oni 2023-01-12 00:35:08 +00:00
commit 78f04f8c71
2 changed files with 7 additions and 3 deletions

View file

@ -11735,7 +11735,11 @@ void P_SpawnPlayer(INT32 playernum)
mobj->health = 1;
p->playerstate = PST_LIVE;
p->realtime = leveltime;
if (!p->exiting || !p->realtime)
{
p->realtime = leveltime;
}
p->followitem = skins[p->skin].followitem;
//awayview stuff

View file

@ -2664,7 +2664,7 @@ static void P_DeathThink(player_t *player)
}
// Keep time rolling
if (!(exitcountdown && !racecountdown) && !(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
{
if (leveltime >= starttime)
{
@ -4023,7 +4023,7 @@ void P_PlayerThink(player_t *player)
}
// Synchronizes the "real" amount of time spent in the level.
if (!(exitcountdown && !racecountdown) && !(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
{
if (leveltime >= starttime)
{