shithub: choc

Download patch

ref: 875a56814c08ef46159a4cf1841c8e2015fe546c
parent: 08be6bdec6c3c0d1bf33a52bd9d2d193b2e4e1bc
author: Turo Lamminen <[email protected]>
date: Tue Sep 13 15:08:32 EDT 2022

hexen: Move NUMKEYS macro definition to h2def.h

--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -140,7 +140,6 @@
 
 #define SLOWTURNTICS    6
 
-#define NUMKEYS 256
 boolean gamekeydown[NUMKEYS];
 int turnheld;                   // for accelerative turning
 int lookheld;
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -764,6 +764,10 @@
 //GAME
 //----
 
+
+#define NUMKEYS 256
+
+
 void G_DeathMatchSpawnPlayer(int playernum);
 
 void G_InitNew(skill_t skill, int episode, int map);
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -125,7 +125,7 @@
 // EXTERNAL DATA DECLARATIONS ----------------------------------------------
 
 extern int detailLevel;
-extern boolean gamekeydown[256];        // The NUMKEYS macro is local to g_game
+extern boolean gamekeydown[256];
 
 // PUBLIC DATA DEFINITIONS -------------------------------------------------