Commit 278ba013 authored by nukeykt's avatar nukeykt
Browse files

engine: fix TROR regression caused by 421b54a8

parent 5fbeae0c
......@@ -5755,10 +5755,14 @@ static void polymost_drawalls(int32_t const bunch)
}
else
{
g_nodraw = 1;
yax_drawcf = -1;
polymost_domost(x0, fy0, x1, fy1);
g_nodraw = 0;
int32_t fz = getflorzofslope(sectnum, globalposx, globalposy);
if (globalposz <= fz)
{
g_nodraw = 1;
yax_drawcf = -1;
polymost_domost(x0, fy0, x1, fy1);
g_nodraw = 0;
}
}
#endif
......@@ -6170,10 +6174,14 @@ static void polymost_drawalls(int32_t const bunch)
}
else
{
g_nodraw = 1;
yax_drawcf = -1;
polymost_domost(x1, cy1, x0, cy0);
g_nodraw = 0;
int32_t cz = getceilzofslope(sectnum, globalposx, globalposy);
if (globalposz >= cz)
{
g_nodraw = 1;
yax_drawcf = -1;
polymost_domost(x1, cy1, x0, cy0);
g_nodraw = 0;
}
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment