tr2/vars: remove unused variables

The global level file name and demo loaded flag variables are no longer
used.
This commit is contained in:
lahm86 2025-04-09 12:09:32 +01:00
parent cc04478e2d
commit e469d774a9
3 changed files with 0 additions and 6 deletions

View file

@ -217,7 +217,6 @@ static void M_LoadFromFile(const GF_LEVEL *const level)
BENCHMARK benchmark = Benchmark_Start();
const char *full_path = File_GetFullPath(level->path);
strcpy(g_LevelFileName, full_path);
VFILE *const file = VFile_CreateFromPath(full_path);
Memory_FreePointer(&full_path);
@ -377,7 +376,6 @@ bool Level_Initialise(
void Level_Unload(void)
{
strcpy(g_LevelFileName, "");
Output_InitialiseTexturePages(0, true);
Output_InitialiseObjectTextures(0);

View file

@ -49,7 +49,6 @@ float g_FltWinRight;
int32_t g_PhdWinRight;
int32_t g_SurfaceCount;
SORT_ITEM *g_Sort3DPtr = nullptr;
bool g_IsDemoLoaded;
uint16_t g_SoundOptionLine;
int32_t g_HealthBarTimer;
int32_t g_LevelComplete;
@ -58,7 +57,6 @@ ITEM *g_LaraItem = nullptr;
CREATURE *g_BaddieSlots = nullptr;
bool g_CameraUnderwater;
char g_LevelFileName[256];
WEAPON_INFO g_Weapons[] = {
{},

View file

@ -50,7 +50,6 @@ extern float g_FltWinRight;
extern int32_t g_PhdWinRight;
extern int32_t g_SurfaceCount;
extern SORT_ITEM *g_Sort3DPtr;
extern bool g_IsDemoLoaded;
extern uint16_t g_SoundOptionLine;
extern int32_t g_HealthBarTimer;
extern int32_t g_LevelComplete;
@ -58,7 +57,6 @@ extern LARA_INFO g_Lara;
extern ITEM *g_LaraItem;
extern CREATURE *g_BaddieSlots;
extern bool g_CameraUnderwater;
extern char g_LevelFileName[256];
extern WEAPON_INFO g_Weapons[];
extern int16_t g_FinalBossActive;
extern uint16_t g_FinalLevelCount;