Changed sun calculation direction.

develop
Japa 2013-06-27 02:49:18 +05:30 committed by Warmist
parent d8b0b82122
commit b12fd5a4c5
1 changed files with 2 additions and 2 deletions

@ -616,7 +616,7 @@ void lightingEngineViewscreen::doSun(const lightSource& sky,MapExtras::MapCache&
cellArray[block_x][block_y] = sky.power; cellArray[block_x][block_y] = sky.power;
int emptyCell=0; 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)); MapExtras::Block* b=map.BlockAt(DFCoord(blockX,blockY,z));
if(!b) if(!b)