Pre-emptively fixes a possible issue where a player who is exiting would have their realtime adjusted on respawn, affecting final results.

This commit is contained in:
toaster 2023-01-08 14:02:02 +00:00
parent 9980631e2f
commit 3d9137a9cf

View file

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