@@ -126,14 +126,14 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
126126
127127 if (k <= water_level) {
128128 this ->blocks [i][water_level][j] = WATER;
129- } else {
129+ } else {
130130
131131 this ->blocks [i][k][j] = this ->biome ->ground ;
132132
133133
134134 std::string key;
135135
136- key = std::to_string (this ->x + 1 ) + " _" + std::to_string (this ->z );
136+ key = std::to_string (this ->x + 1 ) + " _" + std::to_string (this ->z );
137137 if (worldPtr->chunks .count (key) > 0 ) {
138138 if (this ->biome != worldPtr->chunks [key]->biome ) {
139139 int random_number = rand () % 100 ;
@@ -151,7 +151,7 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
151151 }
152152
153153
154- key = std::to_string (this ->x ) + " _" + std::to_string (this ->z + 1 );
154+ key = std::to_string (this ->x ) + " _" + std::to_string (this ->z + 1 );
155155 if (worldPtr->chunks .count (key) > 0 ) {
156156 if (this ->biome != worldPtr->chunks [key]->biome ) {
157157 int random_number = rand () % 100 ;
@@ -169,7 +169,7 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
169169 }
170170
171171
172- key = std::to_string (this ->x - 1 ) + " _" + std::to_string (this ->z );
172+ key = std::to_string (this ->x - 1 ) + " _" + std::to_string (this ->z );
173173 if (worldPtr->chunks .count (key) > 0 ) {
174174 if (this ->biome != worldPtr->chunks [key]->biome ) {
175175 int random_number = rand () % 100 ;
@@ -187,7 +187,7 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
187187 }
188188
189189
190- key = std::to_string (this ->x ) + " _" + std::to_string (this ->z - 1 );
190+ key = std::to_string (this ->x ) + " _" + std::to_string (this ->z - 1 );
191191 if (worldPtr->chunks .count (key) > 0 ) {
192192 if (this ->biome != worldPtr->chunks [key]->biome ) {
193193 int random_number = rand () % 100 ;
@@ -205,12 +205,6 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
205205 }
206206
207207
208-
209-
210-
211-
212-
213-
214208 }
215209
216210 int snow_level_min = 23 ;
@@ -219,7 +213,7 @@ Chunk::Chunk(int chunk_x, int chunk_z, BiomeType *biome) {
219213
220214 // int snow = (rand() % (k+1) - snow_level_min) * snow_progress;
221215
222- if (k > snow_level_min + 3 * sin (0.1 * (i + j))) {
216+ if (k > snow_level_min + 3 * sin (0.1 * (i + j))) {
223217 this ->blocks [i][k][j] = SNOW;
224218 }
225219
0 commit comments