From fd4acd506f45f99b3574dbbfd030c1208f6bb5df Mon Sep 17 00:00:00 2001
From: Maru <priceisrightfan1988@gmail.com>
Date: Fri, 6 Sep 2024 06:46:19 +0000
Subject: [PATCH] Replace r_things.h

---
 src/r_things.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/r_things.h b/src/r_things.h
index 55ab71ec38..b2fd59e7ae 100644
--- a/src/r_things.h
+++ b/src/r_things.h
@@ -48,8 +48,9 @@ extern fixed_t sprbotscreen;
 extern fixed_t windowtop;
 extern fixed_t windowbottom;
 
-void R_DrawMaskedColumn(column_t *column, unsigned lengthcol);
-void R_DrawFlippedMaskedColumn(column_t *column, unsigned lengthcol);
+// rr - added 'column_t *brightmap'
+void R_DrawMaskedColumn(column_t *column, unsigned lengthcol, column_t *brightmap);
+void R_DrawFlippedMaskedColumn(column_t *column, unsigned lengthcol, column_t *brightmap);
 void R_DrawFlippedPost(UINT8 *source, unsigned length, void (*drawcolfunc)(void));
 
 // ----------------
@@ -97,6 +98,9 @@ transnum_t R_GetThingTransTable(fixed_t alpha, transnum_t transmap);
 
 void R_ThingOffsetOverlay (mobj_t *thing, fixed_t *outx, fixed_t *outy);
 
+// rr - maplighting related
+fixed_t R_GetSpriteDirectionalLighting(angle_t angle);
+
 // --------------
 // MASKED DRAWING
 // --------------
@@ -228,6 +232,9 @@ typedef struct vissprite_s
 	INT16 clipbot[MAXVIDWIDTH], cliptop[MAXVIDWIDTH];
 
 	INT32 dispoffset; // copy of mobj->dispoffset, affects ordering but not drawing
+	
+	// rr
+	patch_t *bright;
 } vissprite_t;
 
 extern UINT32 visspritecount, numvisiblesprites;
-- 
GitLab