fix dminer

This commit is contained in:
Vadim Lopatin 2016-04-26 10:09:37 +03:00
parent aada605eaa
commit caa09ae56e
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import dminer.core.world;
import dminer.core.terrain; import dminer.core.terrain;
static short[] TERRAIN_INIT_DATA = [ __gshared static short[] TERRAIN_INIT_DATA = [
// V // V
10, 10, 10, 10, 30, 30, 30, 30, 30, 30, 30, 30, 10, 10, 10, 10, 10, 10, 10, 10, 10, 30, 30, 30, 30, 30, 30, 30, 30, 10, 10, 10, 10, 10,
10, 10, 20, 50, 50, 50, 50, 50, 50, 50, 50, 50, 20, 20, 20, 20, 10, 10, 10, 20, 50, 50, 50, 50, 50, 50, 50, 50, 50, 20, 20, 20, 20, 10,
@ -28,7 +28,7 @@ static short[] TERRAIN_INIT_DATA = [
// ^ // ^
]; ];
static short[] TERRAIN_SCALE_DATA = [ __gshared static short[] TERRAIN_SCALE_DATA = [
// V // V
20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,

View File

@ -88,7 +88,7 @@ struct TerrainGen {
} }
} }
Log.f("last index = ", index); Log.f("last index = ", index);
int half = step >> 1; int half = step >> 1;
while (half > 0) { while (half > 0) {
Log.f("halfstep=", half); Log.f("halfstep=", half);
for (int y = half; y < dy; y += step) { for (int y = half; y < dy; y += step) {