shithub: choc

Download patch

ref: 9438107b427c1bdc6b7c5b6431aa01c8e8cbde01
parent: aa44b2b3d553528a3a45dcde10c1cc3bcdac8419
parent: 8d3f31b70dd68e1bb49cbad976acc0119e329ef8
author: Turo Lamminen <turol@users.noreply.github.com>
date: Wed Oct 19 07:17:26 EDT 2022

Merge pull request #1521 from turol/extern-heretic

heretic: Move spechit and numspechit extern declarations to p_local.h

--- a/src/heretic/p_enemy.c
+++ b/src/heretic/p_enemy.c
@@ -242,9 +242,6 @@
 fixed_t yspeed[8] =
     { 0, 47000, FRACUNIT, 47000, 0, -47000, -FRACUNIT, -47000 };
 
-#define	MAXSPECIALCROSS		8
-extern line_t *spechit[MAXSPECIALCROSS];
-extern int numspechit;
 
 boolean P_Move(mobj_t * actor)
 {
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -243,6 +243,11 @@
 
 void P_RadiusAttack(mobj_t * spot, mobj_t * source, int damage);
 
+#define	MAXSPECIALCROSS		8
+extern line_t *spechit[MAXSPECIALCROSS];
+extern int numspechit;
+
+
 // ***** P_SETUP *****
 
 extern byte *rejectmatrix;      // for fast sight rejection