shithub: choc

Download patch

ref: 0b961d57e68e017dd951b23b7018e677c687fc73
parent: e2b50a923c7c395b604aba5125cf84e049f7886b
author: Turo Lamminen <turol@iki.fi>
date: Tue Sep 13 15:50:29 EDT 2022

hexen: Move PolyBlockMap extern declaration to p_local.h

--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -381,6 +381,8 @@
 
 extern polyobj_t *polyobjs;     // list of all poly-objects on the level
 extern int po_NumPolyobjs;
+extern polyblock_t **PolyBlockMap;
+
 
 void T_PolyDoor(polydoor_t * pd);
 void T_RotatePoly(polyevent_t * pe);
--- a/src/hexen/p_maputl.c
+++ b/src/hexen/p_maputl.c
@@ -431,7 +431,6 @@
     int i;
     polyblock_t *polyLink;
     seg_t **tempSeg;
-    extern polyblock_t **PolyBlockMap;
 
     if (x < 0 || y < 0 || x >= bmapwidth || y >= bmapheight)
         return true;
--- a/src/hexen/p_sight.c
+++ b/src/hexen/p_sight.c
@@ -97,7 +97,6 @@
     polyblock_t *polyLink;
     seg_t **segList;
     int i;
-    extern polyblock_t **PolyBlockMap;
 
     offset = y * bmapwidth + x;