mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: Must not try to draw null flats in the textured automap.
SVN r3333 (trunk)
This commit is contained in:
parent
7279e2ad62
commit
8e636b8abf
1 changed files with 13 additions and 9 deletions
|
@ -1728,15 +1728,19 @@ void AM_drawSubsectors()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the polygon.
|
// Draw the polygon.
|
||||||
screen->FillSimplePoly(TexMan(maptex),
|
FTexture *pic = TexMan(maptex);
|
||||||
&points[0], points.Size(),
|
if (pic != NULL && pic->UseType != FTexture::TEX_Null)
|
||||||
originx, originy,
|
{
|
||||||
scale / (FIXED2FLOAT(sec->GetXScale(sector_t::floor)) * float(1 << MAPBITS)),
|
screen->FillSimplePoly(TexMan(maptex),
|
||||||
scale / (FIXED2FLOAT(sec->GetYScale(sector_t::floor)) * float(1 << MAPBITS)),
|
&points[0], points.Size(),
|
||||||
rotation,
|
originx, originy,
|
||||||
colormap,
|
scale / (FIXED2FLOAT(sec->GetXScale(sector_t::floor)) * float(1 << MAPBITS)),
|
||||||
floorlight
|
scale / (FIXED2FLOAT(sec->GetYScale(sector_t::floor)) * float(1 << MAPBITS)),
|
||||||
);
|
rotation,
|
||||||
|
colormap,
|
||||||
|
floorlight
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue