mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- Blood: fixed: The player's inventory and some other state were reset for each level, not each new game.
This commit is contained in:
parent
78d5b2aa95
commit
a39cf290e3
2 changed files with 4 additions and 4 deletions
|
@ -246,14 +246,14 @@ void PClass::StaticShutdown ()
|
|||
}
|
||||
FunctionPtrList.Clear();
|
||||
VMFunction::DeleteAll();
|
||||
// From this point onward no scripts may be called anymore because the data needed by the VM is getting deleted now.
|
||||
// This flags DObject::Destroy not to call any scripted OnDestroy methods anymore.
|
||||
bVMOperational = false;
|
||||
|
||||
// Make a full garbage collection here so that all destroyed but uncollected higher level objects
|
||||
// that still exist are properly taken down before the low level data is deleted.
|
||||
GC::FullGC();
|
||||
|
||||
// From this point onward no scripts may be called anymore because the data needed by the VM is getting deleted now.
|
||||
// This flags DObject::Destroy not to call any scripted OnDestroy methods anymore.
|
||||
bVMOperational = false;
|
||||
|
||||
Namespaces.ReleaseSymbols();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue