From b55fb4f2f6952f08ede8b37ba15ec8639410cca4 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 18 Jan 2013 14:12:19 -0500 Subject: Last set of minor cleanups --- src/biome.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/biome.cpp') diff --git a/src/biome.cpp b/src/biome.cpp index 80b8d8f4f..69d2dc2f2 100644 --- a/src/biome.cpp +++ b/src/biome.cpp @@ -181,7 +181,8 @@ int Biome::getSurfaceHeight(float noise_terrain) { } -void Biome::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { +void Biome::genColumn(Mapgen *mapgen, int x, int z, int y1, int y2) { + MapgenV7 *mg = (MapgenV7 *)mapgen; int i = (z - mg->node_min.Z) * mg->csize.Z + (x - mg->node_min.X); int surfaceh = np->offset + np->scale * mg->map_terrain[i]; @@ -214,7 +215,8 @@ void Biome::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { ///////////////////////////// [ Ocean biome ] ///////////////////////////////// -void BiomeLiquid::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { +void BiomeLiquid::genColumn(Mapgen *mapgen, int x, int z, int y1, int y2) { + MapgenV7 *mg = (MapgenV7 *)mapgen; int i = (z - mg->node_min.Z) * mg->csize.Z + (x - mg->node_min.X); int surfaceh = np->offset + np->scale * mg->map_terrain[i]; int y = y1; @@ -239,8 +241,9 @@ int BiomeHell::getSurfaceHeight(float noise_terrain) { } -void BiomeHell::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { - +void BiomeHell::genColumn(Mapgen *mapgen, int x, int z, int y1, int y2) { + MapgenV7 *mg = (MapgenV7 *)mapgen; + //stub } @@ -252,8 +255,9 @@ int BiomeAether::getSurfaceHeight(float noise_terrain) { } -void BiomeAether::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { - +void BiomeAether::genColumn(Mapgen *mapgen, int x, int z, int y1, int y2) { + MapgenV7 *mg = (MapgenV7 *)mapgen; + //stub } @@ -265,7 +269,8 @@ int BiomeSuperflat::getSurfaceHeight(float noise_terrain) { } -void BiomeSuperflat::genColumn(MapgenV7 *mg, int x, int z, int y1, int y2) { +void BiomeSuperflat::genColumn(Mapgen *mapgen, int x, int z, int y1, int y2) { + MapgenV7 *mg = (MapgenV7 *)mapgen; int surfaceh = ntopnodes; int y = y1; -- cgit v1.2.3