foxygit / doom Log in
commit 0f37f09a822154081f2136e400ed08f393213438
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Sep 10 17:20:04 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Oct 25 18:04:45 2022 +0300

    heretic: Move inv_ptr extern declaration to doomdef.h
---
 src/heretic/doomdef.h | 1 +
 src/heretic/g_game.c  | 1 -
 src/heretic/p_user.c  | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 9fa5b42b..6f47828c 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -815,6 +815,7 @@ void F_StartFinale(void);

 extern boolean inventory;
 extern int curpos;
+extern int inv_ptr;


 void SB_Init(void);
diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c
index 7f494830..a15cf854 100644
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -279,7 +279,6 @@ static int G_NextWeapon(int direction)
 ====================
 */

-extern int inv_ptr;

 boolean usearti = true;

diff --git a/src/heretic/p_user.c b/src/heretic/p_user.c
index eae68dde..b24029ca 100644
--- a/src/heretic/p_user.c
+++ b/src/heretic/p_user.c
@@ -305,7 +305,6 @@ void P_MovePlayer(player_t * player)
 */

 #define         ANG5    (ANG90/18)
-extern int inv_ptr;

 void P_DeathThink(player_t * player)
 {