- took InitializeDefaults out of PClass and moved it to PClassActor.

Like so many other parts, this created a hard dependency of the low level code on very invasive game content.
This commit is contained in:
Christoph Oelckers 2020-04-11 19:25:32 +02:00
commit f02c5c0a56
8 changed files with 120 additions and 120 deletions

View file

@ -110,6 +110,7 @@
#include "animations.h"
#include "texturemanager.h"
#include "formats/multipatchtexture.h"
#include "scriptutil.h"
EXTERN_CVAR(Bool, hud_althud)
EXTERN_CVAR(Int, vr_mode)
@ -3443,6 +3444,12 @@ void D_Cleanup()
GC::DelSoftRootHead();
for (auto& p : players)
{
p.PendingWeapon = nullptr;
}
PClassActor::AllActorClasses.Clear();
ScriptUtil::Clear();
PClass::StaticShutdown();
GC::FullGC(); // perform one final garbage collection after shutdown