shithub: choc

Download patch

ref: 3cad4c9a1187b6b87fee94db840005c3c4bbe4a7
parent: 591ce05dc9034d412f9104cc24e04b8074103409
author: Turo Lamminen <turol@iki.fi>
date: Tue Sep 13 15:29:19 EDT 2022

hexen: Move MAXSPECIALCROSS macro definition to p_local.h

--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -228,7 +228,6 @@
 fixed_t yspeed[8] =
     { 0, 47000, FRACUNIT, 47000, 0, -47000, -FRACUNIT, -47000 };
 
-#define MAXSPECIALCROSS         8
 extern line_t *spechit[MAXSPECIALCROSS];
 extern int numspechit;
 
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -239,6 +239,10 @@
 
 // ***** P_MAP *****
 
+
+#define MAXSPECIALCROSS         8
+
+
 extern boolean floatok;         // if true, move would be ok if
 extern fixed_t tmfloorz, tmceilingz;    // within tmfloorz - tmceilingz
 extern int tmfloorpic;
--- a/src/hexen/p_map.c
+++ b/src/hexen/p_map.c
@@ -76,7 +76,7 @@
 
 // keep track of special lines as they are hit, but don't process them
 // until the move is proven valid
-#define MAXSPECIALCROSS 8
+
 line_t *spechit[MAXSPECIALCROSS];
 int numspechit;