- Fixed: Must not try to draw null flats in the textured automap.

SVN r3333 (trunk)
This commit is contained in:
Randy Heit 2011-12-14 00:36:47 +00:00
parent 7279e2ad62
commit 8e636b8abf
1 changed files with 13 additions and 9 deletions

View File

@ -1728,15 +1728,19 @@ void AM_drawSubsectors()
}
// Draw the polygon.
screen->FillSimplePoly(TexMan(maptex),
&points[0], points.Size(),
originx, originy,
scale / (FIXED2FLOAT(sec->GetXScale(sector_t::floor)) * float(1 << MAPBITS)),
scale / (FIXED2FLOAT(sec->GetYScale(sector_t::floor)) * float(1 << MAPBITS)),
rotation,
colormap,
floorlight
);
FTexture *pic = TexMan(maptex);
if (pic != NULL && pic->UseType != FTexture::TEX_Null)
{
screen->FillSimplePoly(TexMan(maptex),
&points[0], points.Size(),
originx, originy,
scale / (FIXED2FLOAT(sec->GetXScale(sector_t::floor)) * float(1 << MAPBITS)),
scale / (FIXED2FLOAT(sec->GetYScale(sector_t::floor)) * float(1 << MAPBITS)),
rotation,
colormap,
floorlight
);
}
}
}