HWR_ProcessSeg: fix cliphigh overflow

This commit is contained in:
Alug committed 2025-11-21 19:51:00 +01:00
1 parent db635e5c5b
commit 9a794232d7
1 file changed
+1 -1
+1 -1
View File
@@ -1352,7 +1352,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;