shithub: choc

Download patch

ref: e7c99127bb08225e30e28f6ae99ec3c511a96ce4
parent: bcaddd2ec6b8671f1614029aaca87a89ed569ade
author: Turo Lamminen <turol@iki.fi>
date: Sat Sep 10 13:47:04 EDT 2022

heretic: Move playerkeys extern declaration to doomdef.h

--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -821,6 +821,7 @@
 extern boolean inventory;
 extern int curpos;
 extern int inv_ptr;
+extern int playerkeys;
 
 
 void SB_Init(void);
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1214,7 +1214,6 @@
 = Can when a player completes a level
 ====================
 */
-extern int playerkeys;
 
 void G_PlayerFinishLevel(int player)
 {
--- a/src/heretic/p_inter.c
+++ b/src/heretic/p_inter.c
@@ -316,7 +316,6 @@
 
 void P_GiveKey(player_t * player, keytype_t key)
 {
-    extern int playerkeys;
 
     if (player->keys[key])
     {
--- a/src/heretic/p_mobj.c
+++ b/src/heretic/p_mobj.c
@@ -968,7 +968,6 @@
     fixed_t x, y, z;
     mobj_t *mobj;
     int i;
-    extern int playerkeys;
 
     if (!playeringame[mthing->type - 1])
         return;                 // not playing