text: fix cleaning old text handles

This commit is contained in:
rr- 2021-11-09 10:14:50 +01:00 committed by Marcin Kurczewski
parent 68bd19cc86
commit 2d373902f5
3 changed files with 3 additions and 3 deletions

View file

@ -115,7 +115,6 @@ int32_t InitialiseLevel(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type)
InitialiseLOTArray();
InitColours();
Text_Init();
Overlay_Init();
HealthBarTimer = 100;

View file

@ -3,6 +3,7 @@
#include "global/lib.h"
#include "3dsystem/phd_math.h"
#include "game/game.h"
#include "game/text.h"
#include "global/vars.h"
#include "specific/clock.h"
#include "specific/file.h"
@ -69,7 +70,7 @@ void S_InitialiseSystem()
S_SeedRandom();
Lib_Init();
Text_Init();
ClockInit();
SoundIsActive = SoundInit();
MusicInit();

View file

@ -107,7 +107,7 @@ void GameMain()
break;
case GF_EXIT_TO_TITLE:
Text_Init();
Text_RemoveAll();
TempVideoAdjust(2);
S_DisplayPicture("data\\titleh");
NoInputCount = 0;