- fixed: G_StartTravel must remove all dynamic lights from the actors it is about to carry over to the next level.

This commit is contained in:
Christoph Oelckers 2019-01-03 23:23:08 +01:00
parent 9521b6cd1f
commit 6d87716381

View file

@ -1299,11 +1299,13 @@ void G_StartTravel ()
pawn->RemoveFromHash ();
pawn->tid = tid; // Restore TID (but no longer linked into the hash chain)
pawn->ChangeStatNum (STAT_TRAVELLING);
pawn->DeleteAttachedLights();
for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory)
{
inv->ChangeStatNum (STAT_TRAVELLING);
inv->UnlinkFromWorld (nullptr);
inv->DeleteAttachedLights();
}
}
}