- actor lists refactored.

No more shorts, no more static arrays.
This was one of the biggest blockers for unlimiting the engine.
This commit is contained in:
Christoph Oelckers 2021-12-04 22:04:16 +01:00
parent 87ac9bee44
commit f855b1020f
37 changed files with 641 additions and 730 deletions

View file

@ -78,6 +78,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "hw_voxels.h"
#include "hw_palmanager.h"
#include "razefont.h"
#include "coreactor.h"
CVAR(Bool, autoloadlights, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR(Bool, autoloadbrightmaps, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
@ -1376,7 +1377,7 @@ void GameInterface::loadPalette()
void GameInterface::FreeLevelData()
{
// Make sure that there is no more level to toy around with.
initspritelists();
InitSpriteLists();
numsectors = numwalls = 0;
currentLevel = nullptr;
}