foxygit / doom Log in
commit 19eeebaad1cdd8c8f030f6cc0a87ad986b093691
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Sep 10 18:38:32 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Sat Oct 29 17:50:36 2022 +0300

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

diff --git a/src/heretic/r_local.h b/src/heretic/r_local.h
index ac1cc610..1bd114a5 100644
--- a/src/heretic/r_local.h
+++ b/src/heretic/r_local.h
@@ -343,6 +343,8 @@ void R_RenderBSPNode(int bspnum);
 // R_segs.c
 //
 extern int rw_angle1;           // angle to line origin
+extern lighttable_t **walllights;
+

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

diff --git a/src/heretic/r_main.c b/src/heretic/r_main.c
index d54bb051..1ff6a68d 100644
--- a/src/heretic/r_main.c
+++ b/src/heretic/r_main.c
@@ -29,7 +29,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;