commit 0b961d57e68e017dd951b23b7018e677c687fc73
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 19:50:29 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300
hexen: Move PolyBlockMap extern declaration to p_local.h
---
src/hexen/p_local.h | 2 ++
src/hexen/p_maputl.c | 1 -
src/hexen/p_sight.c | 1 -
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hexen/p_local.h b/src/hexen/p_local.h
index 9f721b27..f3905010 100644
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -381,6 +381,8 @@ enum
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);
diff --git a/src/hexen/p_maputl.c b/src/hexen/p_maputl.c
index dcc7d5d2..d6c29c7e 100644
--- a/src/hexen/p_maputl.c
+++ b/src/hexen/p_maputl.c
@@ -431,7 +431,6 @@ boolean P_BlockLinesIterator(int x, int y, boolean(*func) (line_t *))
int i;
polyblock_t *polyLink;
seg_t **tempSeg;
- extern polyblock_t **PolyBlockMap;
if (x < 0 || y < 0 || x >= bmapwidth || y >= bmapheight)
return true;
diff --git a/src/hexen/p_sight.c b/src/hexen/p_sight.c
index 06fd3384..b5efd07f 100644
--- a/src/hexen/p_sight.c
+++ b/src/hexen/p_sight.c
@@ -97,7 +97,6 @@ boolean P_SightBlockLinesIterator(int x, int y)
polyblock_t *polyLink;
seg_t **segList;
int i;
- extern polyblock_t **PolyBlockMap;
offset = y * bmapwidth + x;