Merge branch 'bot-realtime-fix' into 'master'
Bot `realtime` fix See merge request KartKrew/Kart!874
This commit is contained in:
parent
c95978b578
commit
ca03f2b777
2 changed files with 7 additions and 3 deletions
|
|
@ -11155,7 +11155,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
|
||||
|
|
|
|||
|
|
@ -2661,7 +2661,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)
|
||||
{
|
||||
|
|
@ -4288,7 +4288,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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue