diff --git a/examples/dminer/src/dminer/core/generators.d b/examples/dminer/src/dminer/core/generators.d index f7200371..59df0565 100644 --- a/examples/dminer/src/dminer/core/generators.d +++ b/examples/dminer/src/dminer/core/generators.d @@ -6,7 +6,7 @@ import dminer.core.world; import dminer.core.terrain; -static short[] TERRAIN_INIT_DATA = [ +__gshared static short[] TERRAIN_INIT_DATA = [ // V 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, @@ -28,7 +28,7 @@ static short[] TERRAIN_INIT_DATA = [ // ^ ]; -static short[] TERRAIN_SCALE_DATA = [ +__gshared static short[] TERRAIN_SCALE_DATA = [ // 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, diff --git a/examples/dminer/src/dminer/core/terrain.d b/examples/dminer/src/dminer/core/terrain.d index e2c4e438..1f4d9424 100644 --- a/examples/dminer/src/dminer/core/terrain.d +++ b/examples/dminer/src/dminer/core/terrain.d @@ -88,7 +88,7 @@ struct TerrainGen { } } Log.f("last index = ", index); - int half = step >> 1; + int half = step >> 1; while (half > 0) { Log.f("halfstep=", half); for (int y = half; y < dy; y += step) {