commit 3cad4c9a1187b6b87fee94db840005c3c4bbe4a7
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 19:29:19 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300
hexen: Move MAXSPECIALCROSS macro definition to p_local.h
---
src/hexen/p_enemy.c | 1 -
src/hexen/p_local.h | 4 ++++
src/hexen/p_map.c | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/hexen/p_enemy.c b/src/hexen/p_enemy.c
index 37736ca1..c1692c5d 100644
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -228,7 +228,6 @@ fixed_t xspeed[8] =
fixed_t yspeed[8] =
{ 0, 47000, FRACUNIT, 47000, 0, -47000, -FRACUNIT, -47000 };
-#define MAXSPECIALCROSS 8
extern line_t *spechit[MAXSPECIALCROSS];
extern int numspechit;
diff --git a/src/hexen/p_local.h b/src/hexen/p_local.h
index 9b0c0207..bb4c85bc 100644
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -239,6 +239,10 @@ mobj_t *P_RoughMonsterSearch(mobj_t * mo, int distance);
// ***** 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;
diff --git a/src/hexen/p_map.c b/src/hexen/p_map.c
index b77777a9..959e06d8 100644
--- a/src/hexen/p_map.c
+++ b/src/hexen/p_map.c
@@ -76,7 +76,7 @@ line_t *ceilingline;
// 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;