- moved the global spot state into FLevelLocals.

This way it doesn't even have to be a thinker.
This commit is contained in:
Christoph Oelckers 2019-01-05 10:04:27 +01:00
commit dab68184f5
14 changed files with 39 additions and 44 deletions

View file

@ -69,6 +69,7 @@
#include "i_time.h"
#include "scripting/vm/vm.h"
#include "fragglescript/t_fs.h"
#include "a_specialspot.h"
#include "maploader/maploader.h"
void P_ClearUDMFKeys();
@ -273,6 +274,7 @@ void FLevelLocals::ClearLevelData()
}
ClearPortals();
SpotState = nullptr;
canvasTextureInfo.EmptyList();
sections.Clear();
segs.Clear();