shithub: choc

Download patch

ref: dfea3cff9706c903687328e7b776370e2a1927cd
parent: 965fde08c058edeeb03ca0189ccefbe0dedd8956
author: Turo Lamminen <turol@iki.fi>
date: Sat Sep 10 14:41:12 EDT 2022

heretic: Move ylookup extern declaration to r_local.h

--- a/src/heretic/r_local.h
+++ b/src/heretic/r_local.h
@@ -454,6 +454,8 @@
 extern fixed_t dc_iscale;
 extern fixed_t dc_texturemid;
 extern byte *dc_source;         // first pixel in a column
+extern byte *ylookup[MAXHEIGHT];
+
 
 void R_DrawColumn(void);
 void R_DrawColumnLow(void);
--- a/src/heretic/r_plane.c
+++ b/src/heretic/r_plane.c
@@ -381,8 +381,6 @@
     int count;
     fixed_t frac, fracstep;
 
-    extern byte *ylookup[MAXHEIGHT];
-
 #ifdef RANGECHECK
     if (ds_p - drawsegs > MAXDRAWSEGS)
         I_Error("R_DrawPlanes: drawsegs overflow (%td)",