From 72c6ff930b89515b8efb9219ea57736f9f006814 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 21 Nov 2025 19:50:44 +0100 Subject: [PATCH] HWR_ProcessSeg: fix cliphigh overflow --- src/hardware/hw_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index fcc078227..1d8fb7c70 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -1366,7 +1366,7 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom // x offset the texture const fixed_t texturehpeg = gl_sidedef->textureoffset + gl_curline->offset; const float cliplow = (float)texturehpeg; - const float cliphigh = (float)(texturehpeg + gl_curline->length); + const float cliphigh = ((float)texturehpeg + (float)gl_curline->length); FUINT lightnum = gl_frontsector->lightlevel; extracolormap_t *colormap = gl_frontsector->extra_colormap;