Merge branch 'OldPlayer-Fix' of https://github.com/Edward850/zdoom

This commit is contained in:
Christoph Oelckers 2014-10-25 17:38:48 +02:00
commit ebbaf2f1b7

View file

@ -236,6 +236,18 @@ void G_NewInit ()
{
int i;
// Destory all old player refrences that may still exist
TThinkerIterator<APlayerPawn> it(STAT_TRAVELLING);
APlayerPawn *pawn, *next;
next = it.Next();
while ((pawn = next) != NULL)
{
next = it.Next();
pawn->flags |= MF_NOSECTOR | MF_NOBLOCKMAP;
pawn->Destroy();
}
G_ClearSnapshots ();
ST_SetNeedRefresh();
netgame = false;