mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-29 07:22:33 +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
|
@ -251,7 +251,6 @@ void NewLevel(MapRecord *sng, int skill)
|
|||
{
|
||||
if (skill != -1) gGameOptions.nDifficulty = skill;
|
||||
gSkill = gGameOptions.nDifficulty;
|
||||
cheatReset();
|
||||
StartLevel(sng);
|
||||
gameaction = ga_level;
|
||||
};
|
||||
|
@ -275,6 +274,7 @@ void NewLevel(MapRecord *sng, int skill)
|
|||
void GameInterface::NewGame(MapRecord *sng, int skill)
|
||||
{
|
||||
gGameOptions.uGameFlags = 0;
|
||||
cheatReset();
|
||||
NewLevel(sng, skill);
|
||||
}
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue