From 17346e29c3d0dead934e3ea099aa583bbc966907 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Tue, 24 May 2016 14:38:31 +0100 Subject: [PATCH 1/3] Remove unused drawfunc_t function typedef --- src/r_bsp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/r_bsp.h b/src/r_bsp.h index 97b8c2e8..e871b5dd 100644 --- a/src/r_bsp.h +++ b/src/r_bsp.h @@ -33,8 +33,6 @@ extern drawseg_t *drawsegs; extern drawseg_t *ds_p; extern INT32 doorclosed; -typedef void (*drawfunc_t)(INT32 start, INT32 stop); - // BSP? void R_ClearClipSegs(void); void R_PortalClearClipSegs(INT32 start, INT32 end); From ab6d4d7aec446371feeb28a973100cfc2eb7dbfe Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Tue, 24 May 2016 14:41:55 +0100 Subject: [PATCH 2/3] Remove unused planefunction_t function typedef (the number of unused things hiding around in SRB2's source code is silly lol) --- src/r_plane.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/r_plane.h b/src/r_plane.h index 64b339d0..8730bcef 100644 --- a/src/r_plane.h +++ b/src/r_plane.h @@ -73,7 +73,6 @@ extern visplane_t *ceilingplane; // Visplane related. extern INT16 *lastopening, *openings; extern size_t maxopenings; -typedef void (*planefunction_t)(INT32 top, INT32 bottom); extern INT16 floorclip[MAXVIDWIDTH], ceilingclip[MAXVIDWIDTH]; extern fixed_t frontscale[MAXVIDWIDTH], yslopetab[MAXVIDHEIGHT*4]; From 7c78b95a7db5596fe002223b866e4eedf07ead49 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Tue, 24 May 2016 22:11:48 +0100 Subject: [PATCH 3/3] This is probably the "correct" way to set maskedtextureheight Probably doesn't make any difference in-game at all though, lol --- src/r_segs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_segs.c b/src/r_segs.c index 9faee429..11b4c8ae 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -2480,7 +2480,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) ds_p->maskedtexturecol = ds_p->thicksidecol; #ifdef ESLOPE - maskedtextureheight = &(ds_p->maskedtextureheight[0]); // ???? + maskedtextureheight = ds_p->maskedtextureheight; // note to red, this == &(ds_p->maskedtextureheight[0]) // Set midtexture starting height if (linedef->flags & ML_EFFECT2) { // Ignore slopes when texturing