mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
simplify check for PL_FLATMAPPING in do_draw_plane()
This commit is contained in:
parent
4d4d91de0a
commit
40e3447805
@ -619,19 +619,10 @@ static void do_draw_plane(visplane_t *pl)
|
|||||||
|
|
||||||
// sky flat
|
// sky flat
|
||||||
|
|
||||||
if (sky)
|
if (pl->picnum == skyflatnum && sky)
|
||||||
{
|
{
|
||||||
if ((pl->picnum & PL_FLATMAPPING) == PL_FLATMAPPING)
|
DrawSkyDef(pl);
|
||||||
{
|
return;
|
||||||
do_draw_mbf_sky(pl);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pl->picnum == skyflatnum)
|
|
||||||
{
|
|
||||||
DrawSkyDef(pl);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pl->picnum == skyflatnum || pl->picnum & PL_SKYFLAT)
|
if (pl->picnum == skyflatnum || pl->picnum & PL_SKYFLAT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user