commit 19ab27d1c1e7e62b2c28de77c8e0d610a4e83878
Author: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
AuthorDate: Fri Nov 17 12:38:02 2023 +0100
Commit: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
CommitDate: Fri Nov 17 12:38:02 2023 +0100
Remove unused `leveljuststarted` globals
These are only ever set, but never read, so they can just be removed.
---
src/doom/am_map.c | 4 ----
src/heretic/am_map.c | 4 ----
src/hexen/am_map.c | 4 ----
src/strife/am_map.c | 4 ----
4 files changed, 16 deletions(-)
diff --git a/src/doom/am_map.c b/src/doom/am_map.c
index 2ea9f62d..150098ed 100644
--- a/src/doom/am_map.c
+++ b/src/doom/am_map.c
@@ -197,8 +197,6 @@ mline_t thintriangle_guy[] = {
static int cheating = 0;
static int grid = 0;
-static int leveljuststarted = 1; // kluge until AM_LevelInit() is called
-
boolean automapactive = false;
static int finit_width = SCREENWIDTH;
static int finit_height = SCREENHEIGHT - ST_HEIGHT;
@@ -519,8 +517,6 @@ void AM_clearMarks(void)
//
void AM_LevelInit(void)
{
- leveljuststarted = 0;
-
f_x = f_y = 0;
f_w = finit_width;
f_h = finit_height;
diff --git a/src/heretic/am_map.c b/src/heretic/am_map.c
index 9b3809d3..afc0c422 100644
--- a/src/heretic/am_map.c
+++ b/src/heretic/am_map.c
@@ -94,8 +94,6 @@ const char *LevelNames[] = {
static int cheating = 0;
static int grid = 0;
-static int leveljuststarted = 1; // kluge until AM_LevelInit() is called
-
boolean automapactive = false;
static int finit_width = SCREENWIDTH;
static int finit_height = SCREENHEIGHT - 42;
@@ -433,8 +431,6 @@ void AM_clearMarks(void)
void AM_LevelInit(void)
{
- leveljuststarted = 0;
-
f_x = f_y = 0;
f_w = finit_width;
f_h = finit_height;
diff --git a/src/hexen/am_map.c b/src/hexen/am_map.c
index 28f8bc65..34985dc5 100644
--- a/src/hexen/am_map.c
+++ b/src/hexen/am_map.c
@@ -33,8 +33,6 @@
int cheating = 0;
static int grid = 0;
-static int leveljuststarted = 1; // kluge until AM_LevelInit() is called
-
boolean automapactive = false;
static int finit_width = SCREENWIDTH;
static int finit_height = SCREENHEIGHT - SBARHEIGHT - 3;
@@ -346,8 +344,6 @@ void AM_clearMarks(void)
void AM_LevelInit(void)
{
- leveljuststarted = 0;
-
f_x = f_y = 0;
f_w = finit_width;
f_h = finit_height;
diff --git a/src/strife/am_map.c b/src/strife/am_map.c
index 22913c39..e36fb56d 100644
--- a/src/strife/am_map.c
+++ b/src/strife/am_map.c
@@ -173,8 +173,6 @@ mline_t thintriangle_guy[] = {
static int cheating = 0;
//static int grid = 0; [STRIFE]: no such variable
-static int leveljuststarted = 1; // kluge until AM_LevelInit() is called
-
boolean automapactive = false;
static int finit_width = SCREENWIDTH;
static int finit_height = SCREENHEIGHT - 32;
@@ -498,8 +496,6 @@ void AM_clearMarks(void)
//
void AM_LevelInit(void)
{
- leveljuststarted = 0;
-
f_x = f_y = 0;
f_w = finit_width;
f_h = finit_height;