From f30cdc19333bf4e4ef322ffe3a1aa5449867ea84 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 4 Feb 2025 23:02:58 +0100 Subject: [PATCH] stuff that was missing --- src/hardware/hw_main.c | 8 ++++++++ src/r_things.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index de6d1c0cb..e5c9d3825 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2820,6 +2820,13 @@ static boolean HWR_DoCulling(line_t *cullheight, line_t *viewcullheight, float v return false; } +static FBITFIELD HWR_RippleBlend(sector_t *sector, ffloor_t *rover, boolean ceiling) +{ + (void)sector; + (void)ceiling; + return /*R_IsRipplePlane(sector, rover, ceiling)*/ (rover->flags & FF_RIPPLE) ? PF_Ripple : 0; +} + // -----------------+ // HWR_Subsector : Determine floor/ceiling planes. // : Add sprites of things in sector. @@ -4957,6 +4964,7 @@ static void HWR_ProjectPrecipitationSprite(precipmobj_t *thing) if (!R_BlendLevelVisible(thing->blendmode, (thing->frame & FF_TRANSMASK)>>FF_TRANSSHIFT)) return; } + // transform the origin point tr_x = FIXED_TO_FLOAT(interp.x); tr_y = FIXED_TO_FLOAT(interp.y); diff --git a/src/r_things.c b/src/r_things.c index 1b4c905be..4703f7561 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -2108,7 +2108,7 @@ void R_AddPrecipitationSprites(void) { for (th = precipblocklinks[(by * bmapwidth) + bx]; th; th = next) { - // Store this beforehand because R_ProjectPrecipitionSprite may free th (see P_PrecipThinker) + // Store this beforehand because R_ProjectPrecipitationSprite may free th (see P_PrecipThinker) next = th->bnext; if (th->precipflags & PCF_INVISIBLE)