foxygit / doom Log in
commit 016554564a92f8e2260681ce12783b4c90a52d23
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Oct 11 12:01:13 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Oct 11 12:01:13 2022 +0300

    heretic: Move automapactive extern declaration to am_map.h
---
 src/heretic/am_map.h   | 4 ++++
 src/heretic/d_main.c   | 1 -
 src/heretic/f_finale.c | 1 -
 src/heretic/mn_menu.c  | 1 -
 src/heretic/sb_bar.c   | 1 -
 5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/heretic/am_map.h b/src/heretic/am_map.h
index 322817ed..745d63df 100644
--- a/src/heretic/am_map.h
+++ b/src/heretic/am_map.h
@@ -112,4 +112,8 @@ typedef struct

 // extern int f_x, f_y, f_w, f_h;

+
+extern boolean automapactive;
+
+
 #endif
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index fda1ecad..dd91f3ab 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -74,7 +74,6 @@ static int graphical_startup = 1;
 static boolean using_graphical_startup;
 static boolean main_loop_started = false;
 boolean autostart;
-extern boolean automapactive;

 boolean advancedemo;

diff --git a/src/heretic/f_finale.c b/src/heretic/f_finale.c
index f396d1be..826c96c1 100644
--- a/src/heretic/f_finale.c
+++ b/src/heretic/f_finale.c
@@ -36,7 +36,6 @@ static const char *finaleflat;

 static int FontABaseLump;

-extern boolean automapactive;
 extern boolean viewactive;

 extern void D_StartTitle(void);
diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c
index 4066cd28..ed8ab4bc 100644
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -1044,7 +1044,6 @@ boolean MN_Responder(event_t * event)
     int key;
     int i;
     MenuItem_t *item;
-    extern boolean automapactive;
     extern void D_StartTitle(void);
     extern void G_CheckDemoStatus(void);
     char *textBuffer;
diff --git a/src/heretic/sb_bar.c b/src/heretic/sb_bar.c
index 68630029..9bf7998c 100644
--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -540,7 +540,6 @@ static int oldkeys = -1;

 int playerkeys = 0;

-extern boolean automapactive;

 void SB_Drawer(void)
 {