- 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 committed by drfrag
parent 251b096b48
commit 094aa245e6

View file

@ -1287,11 +1287,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();
}
}
}