Move OnLoad to after everything is done serializing
Makes behavior much more consistent and safer.
This commit is contained in:
parent
5bd8c7f3be
commit
42a3ca3d56
3 changed files with 46 additions and 13 deletions
|
|
@ -1538,6 +1538,10 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
|
|||
{
|
||||
I_Error("no start for player %d found.", pnumerr);
|
||||
}
|
||||
|
||||
// If loading in from existing data, allow things to reinitialize if needed.
|
||||
if (FromSnapshot || savegamerestore)
|
||||
Thinkers.OnLoad();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue