foxygit / doom Log in
commit 46d46e543c543662200e7a37a2fabfb5f4e4bc65
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 20:02:32 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300

    hexen: Move columnofs extern declaration to r_local.h
---
 src/hexen/r_local.h | 1 +
 src/hexen/r_plane.c | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/hexen/r_local.h b/src/hexen/r_local.h
index ad18aaa5..e9cb26ce 100644
--- a/src/hexen/r_local.h
+++ b/src/hexen/r_local.h
@@ -519,6 +519,7 @@ extern fixed_t dc_iscale;
 extern fixed_t dc_texturemid;
 extern byte *dc_source;         // first pixel in a column
 extern byte *ylookup[MAXHEIGHT];
+extern int columnofs[MAXWIDTH];


 void R_DrawColumn(void);
diff --git a/src/hexen/r_plane.c b/src/hexen/r_plane.c
index 6bd23e95..8acbcc43 100644
--- a/src/hexen/r_plane.c
+++ b/src/hexen/r_plane.c
@@ -383,8 +383,6 @@ void R_DrawPlanes(void)
     int skyTexture2;
     int scrollOffset;

-    extern int columnofs[MAXWIDTH];
-
 #ifdef RANGECHECK
     if (ds_p - drawsegs > MAXDRAWSEGS)
     {