Merge branch 'master' of git://github.com/JapaMala/dfhack

develop
Warmist 2013-06-27 16:18:46 +03:00
commit e2db468d3d
1 changed files with 2 additions and 2 deletions

@ -614,7 +614,7 @@ void lightingEngineViewscreen::doSun(const lightSource& sky,MapExtras::MapCache&
cellArray[block_x][block_y] = sky.power;
int emptyCell=0;
for(int z=df::global::world->map.z_count-1;z>=window_z && emptyCell<256;z--)
for(int z=window_z;z< df::global::world->map.z_count && emptyCell<256;z++)
{
MapExtras::Block* b=map.BlockAt(DFCoord(blockX,blockY,z));
if(!b)