Added transparency to ice walls

develop
Warmist 2013-06-24 00:36:43 +03:00
parent 83265efaa8
commit f745de3aff
1 changed files with 6 additions and 3 deletions

@ -357,10 +357,14 @@ void lightingEngineViewscreen::doOcupancyAndLights()
df::tile_designation* d=Maps::getTileDesignation(x,y,window_z);
df::tile_designation* d2=Maps::getTileDesignation(x,y,window_z-1);
df::tile_occupancy* o=Maps::getTileOccupancy(x,y,window_z);
df::tiletype_material m=ENUM_ATTR(tiletype,material,*type);
if(!o || !d )
continue;
if(shape==df::tiletype_shape::BROOK_BED || shape==df::tiletype_shape::WALL || shape==df::tiletype_shape::TREE || d->bits.hidden )
{
if(shape==df::tiletype_shape::WALL && m==df::tiletype_material::FROZEN_LIQUID)
curCell*=lightCell(0.7,0.7,0.9);
else
curCell=lightCell(0,0,0);
}
else if(o->bits.building)
@ -425,7 +429,6 @@ void lightingEngineViewscreen::doOcupancyAndLights()
{
curCell*=lightCell(0.7f,0.7f,0.8f);
}
//lights
if((d->bits.liquid_type && d->bits.flow_size>0)||
(