- 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:
parent
74c5f83658
commit
f02c5c0a56
8 changed files with 120 additions and 120 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue