Changed sun calculation direction.

develop
Japa 2013-06-27 02:49:18 +05:30
parent b7f28877a2
commit 67859ada0a
1 changed files with 1 additions and 1 deletions

@ -562,7 +562,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)