- reset YAX data before loading a game.

This could cause random lockups when loading a savegame for a game not maintaining the feature. The entire engine state really needs to be handled globally instead of repeating this core 5 times...
This commit is contained in:
Christoph Oelckers 2020-01-21 19:14:53 +01:00
parent a637ec60c4
commit cacbd7d8b6
2 changed files with 3 additions and 1 deletions

View file

@ -51,12 +51,14 @@
#include "i_specialpaths.h"
#include "c_dispatch.h"
#include "i_system.h"
#include "build.h"
FSavegameManager savegameManager;
void FSavegameManager::LoadGame(FSaveGameNode* node)
{
yax_update(1); // make sure it's all reset before loading a new map.
if (gi->LoadGame(node))
{
}

View file

@ -268,7 +268,7 @@ void DrawStatusAnims()
{
int nSequence = nStatusSeqOffset + StatusAnim[i].s1;
seq_DrawStatusSequence(nSequence, StatusAnim[i].s2, 0);
//seq_DrawStatusSequence(nSequence, StatusAnim[i].s2, 0);
/*
if (StatusAnim[nAnim].s2 >= (SeqSize[nSequence] - 1))