diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index b996aa97c..ff42999b4 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -660,7 +660,7 @@ void GLFlat::ProcessSector(sector_t * frontsector) if (rover->flags&FF_FOG && gl_fixedcolormap) continue; if (!rover->top.copied && rover->flags&(FF_INVERTPLANES|FF_BOTHPLANES)) { - fixed_t ff_top=rover->top.plane->ZatPoint(CenterSpot(sector)); + fixed_t ff_top=rover->top.plane->ZatPoint(sector->centerspot); if (ff_toptop.plane->ZatPoint(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy))) @@ -674,7 +674,7 @@ void GLFlat::ProcessSector(sector_t * frontsector) } if (!rover->bottom.copied && !(rover->flags&FF_INVERTPLANES)) { - fixed_t ff_bottom=rover->bottom.plane->ZatPoint(CenterSpot(sector)); + fixed_t ff_bottom=rover->bottom.plane->ZatPoint(sector->centerspot); if (ff_bottombottom.plane->ZatPoint(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy))) @@ -700,7 +700,7 @@ void GLFlat::ProcessSector(sector_t * frontsector) if (rover->flags&FF_FOG && gl_fixedcolormap) continue; if (!rover->bottom.copied && rover->flags&(FF_INVERTPLANES|FF_BOTHPLANES)) { - fixed_t ff_bottom=rover->bottom.plane->ZatPoint(CenterSpot(sector)); + fixed_t ff_bottom=rover->bottom.plane->ZatPoint(sector->centerspot); if (ff_bottom>lastfloorheight || (rover->flags&FF_FIX)) { if (FIXED2FLOAT(viewz) >= rover->bottom.plane->ZatPoint(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy))) @@ -721,7 +721,7 @@ void GLFlat::ProcessSector(sector_t * frontsector) } if (!rover->top.copied && !(rover->flags&FF_INVERTPLANES)) { - fixed_t ff_top=rover->top.plane->ZatPoint(CenterSpot(sector)); + fixed_t ff_top=rover->top.plane->ZatPoint(sector->centerspot); if (ff_top>lastfloorheight) { if (FIXED2FLOAT(viewz) >= rover->top.plane->ZatPoint(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy)))