HWR_ProcessSeg: fix cliphigh overflow

This commit is contained in:
Alug committed 2025-11-21 19:50:44 +01:00
1 parent 11e37ff7ca
commit 72c6ff930b
1 file changed
+1 -1
+1 -1
View File
@@ -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;