Moved prediction lerp reset to cover all cases.

This commit is contained in:
Edward Richardson 2014-10-13 16:49:53 +13:00
parent 98904039b7
commit 3e4446e46b
2 changed files with 6 additions and 6 deletions

View file

@ -1635,12 +1635,6 @@ void G_DoReborn (int playernum, bool freshbot)
}
else
{
// Old lerp data needs to go
if (playernum == consoleplayer)
{
P_PredictionLerpReset();
}
// respawn at the start
// first disassociate the corpse
if (players[playernum].mo)

View file

@ -4246,6 +4246,12 @@ APlayerPawn *P_SpawnPlayer (FPlayerStart *mthing, int playernum, int flags)
if ((unsigned)playernum >= (unsigned)MAXPLAYERS || !playeringame[playernum])
return NULL;
// Old lerp data needs to go
if (playernum == consoleplayer)
{
P_PredictionLerpReset();
}
p = &players[playernum];
if (p->cls == NULL)