foxygit / doom Log in
commit 04a1a01f3d264c56c52b414f6999564c1c3d5444
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 20:18:35 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:14 2022 +0300

    hexen: Move cheating extern declaration to am_map.h
---
 src/hexen/am_map.h | 1 +
 src/hexen/sb_bar.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hexen/am_map.h b/src/hexen/am_map.h
index d59a36af..f6081a44 100644
--- a/src/hexen/am_map.h
+++ b/src/hexen/am_map.h
@@ -118,6 +118,7 @@ typedef struct
 } islope_t;


+extern int cheating;
 extern boolean automapactive;


diff --git a/src/hexen/sb_bar.c b/src/hexen/sb_bar.c
index 93eabf81..112ba23d 100644
--- a/src/hexen/sb_bar.c
+++ b/src/hexen/sb_bar.c
@@ -1928,7 +1928,6 @@ static void CheatScriptFunc3(player_t * player, Cheat_t * cheat)
     }
 }

-extern int cheating;

 static void CheatRevealFunc(player_t * player, Cheat_t * cheat)
 {