HWR_ProcessSeg: fix cliphigh overflow
This commit is contained in:
1 parent
11e37ff7ca
commit
72c6ff930b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user