mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-03-11 03:02:26 +00:00
- 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:
parent
251b096b48
commit
094aa245e6
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue