foxygit / doom Log in
commit e7d8996e2c77403dd76fef09bd07dceaa8a679b2
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 19:59:08 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300

    hexen: Move walllights extern declaration to r_local.h
---
 src/hexen/r_local.h | 2 ++
 src/hexen/r_main.c  | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hexen/r_local.h b/src/hexen/r_local.h
index a25490a7..f30b0a66 100644
--- a/src/hexen/r_local.h
+++ b/src/hexen/r_local.h
@@ -397,6 +397,8 @@ void R_RenderBSPNode(int bspnum);
 extern int rw_angle1;           // angle to line origin
 extern int TransTextureStart;
 extern int TransTextureEnd;
+extern lighttable_t **walllights;
+

 void R_RenderMaskedSegRange(drawseg_t * ds, int x1, int x2);

diff --git a/src/hexen/r_main.c b/src/hexen/r_main.c
index b551a153..3bbb4fce 100644
--- a/src/hexen/r_main.c
+++ b/src/hexen/r_main.c
@@ -28,7 +28,6 @@ int viewangleoffset;
 int validcount = 1;             // increment every time a check is made

 lighttable_t *fixedcolormap;
-extern lighttable_t **walllights;

 int centerx, centery;
 fixed_t centerxfrac, centeryfrac;