mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- restored order of destruction of interpolations and thinkers, which got accidentally reversed.
This commit is contained in:
parent
a0042fd653
commit
26acd564fb
2 changed files with 3 additions and 2 deletions
|
@ -255,6 +255,7 @@ void FLevelLocals::ClearPortals()
|
|||
|
||||
void FLevelLocals::ClearLevelData()
|
||||
{
|
||||
interpolator.ClearInterpolations(); // [RH] Nothing to interpolate on a fresh level.
|
||||
Thinkers.DestroyAllThinkers();
|
||||
ClearAllSubsectorLinks(); // can't be done as part of the polyobj deletion process.
|
||||
|
||||
|
@ -290,10 +291,9 @@ void FLevelLocals::ClearLevelData()
|
|||
}
|
||||
ClearPortals();
|
||||
|
||||
interpolator.ClearInterpolations(); // [RH] Nothing to interpolate on a fresh level.
|
||||
tagManager.Clear();
|
||||
ClearTIDHashes();
|
||||
Behaviors.UnloadModules();
|
||||
if (SpotState) SpotState->Destroy();
|
||||
SpotState = nullptr;
|
||||
ACSThinker = nullptr;
|
||||
FraggleScriptThinker = nullptr;
|
||||
|
|
|
@ -429,6 +429,7 @@ void DSectorPlaneInterpolation::OnDestroy()
|
|||
{
|
||||
attached[i]->DelRef();
|
||||
}
|
||||
attached.Reset();
|
||||
Super::OnDestroy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue