Allow structure baseplates to have transparency.

master
Gerard Krol 2009-04-07 11:43:32 +02:00
parent 3b7fbcd837
commit 5a2ff6f410
2 changed files with 2 additions and 10 deletions

View File

@ -514,14 +514,6 @@ void pie_Draw3DShape(iIMDShape *shape, int frame, int team, PIELIGHT colour, PIE
{
pieCount++;
// Fix for transparent buildings and features!!
if( (pieFlag & pie_TRANSLUCENT) && (pieFlagData > 220) )
{
// force to bilinear and non-transparent
pieFlag = pieFlag & ~pie_TRANSLUCENT;
pieFlagData = 0;
}
if (frame == 0)
{
frame = team;

View File

@ -2115,8 +2115,8 @@ void renderStructure(STRUCTURE *psStructure)
}
else
{
pieFlag = 0;
pieFlagData = 0;
pieFlag = pie_TRANSLUCENT;
pieFlagData = 255;
}
pie_Draw3DShape(psStructure->pStructureType->pBaseIMD, 0, 0, buildingBrightness, WZCOL_BLACK, pieFlag, pieFlagData);
}