shithub: choc

Download patch

ref: e664067dd2b572420145b768fa2668e2a869d9a5
parent: 965fde08c058edeeb03ca0189ccefbe0dedd8956
parent: dfea3cff9706c903687328e7b776370e2a1927cd
author: Turo Lamminen <turol@users.noreply.github.com>
date: Mon Oct 31 08:46:24 EDT 2022

Merge pull request #1533 from turol/extern-heretic

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)",