foxygit / doom Log in
commit 387ce8a3257bf7e3cb56d70f12bd0a124f08ade0
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 18:38:48 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Fri Oct 7 13:14:28 2022 +0300

    hexen: Move MenuActive extern declaration to h2def.h
---
 src/hexen/g_game.c  | 1 -
 src/hexen/h2_main.c | 1 -
 src/hexen/h2def.h   | 2 ++
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c
index c3332d84..72da44a7 100644
--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -858,7 +858,6 @@ static void SetMouseButtons(unsigned int buttons_mask)
 boolean G_Responder(event_t * ev)
 {
     player_t *plr;
-    extern boolean MenuActive;

     plr = &players[consoleplayer];
     if (ev->type == ev_keyup && ev->data1 == key_useartifact)
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c
index 23d80e5c..2af7ec1d 100644
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -87,7 +87,6 @@ static void WarpCheck(void);

 // EXTERNAL DATA DECLARATIONS ----------------------------------------------

-extern boolean MenuActive;
 extern boolean askforquit;

 // PUBLIC DATA DEFINITIONS -------------------------------------------------
diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index 7c79b8b3..880f3f1f 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -1080,6 +1080,8 @@ void MN_DrTextB(const char *text, int x, int y);
 int MN_TextBWidth(const char *text);

 extern int messageson;
+extern boolean MenuActive;
+

 #include "sounds.h"