mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-22 21:41:31 +00:00
Merge branch 'bot-realtime-fix' into 'master'
Bot `realtime` fix See merge request KartKrew/Kart!874
This commit is contained in:
commit
78f04f8c71
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue