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;