Allow structure baseplates to have transparency.
parent
3b7fbcd837
commit
5a2ff6f410
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue