From 917b549f46a6add2286953df842c8cf914e76790 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 11 Jan 2024 02:15:42 -0800 Subject: [PATCH] Vissprites: set dc.texheight Fixes power-of-2 detection in R_DrawColumnTemplate. --- src/r_things.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 23b5b9b3a..e1c427aee 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -1155,7 +1155,7 @@ static void R_DrawPrecipitationVisSprite(vissprite_t *vis) dc.iscale = FixedDiv(FRACUNIT, vis->scale); dc.texturemid = FixedDiv(vis->texturemid, this_scale); - dc.texheight = 0; + dc.texheight = patch->height; frac = vis->startfrac; spryscale = vis->scale;