]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapgen/mapgen_v7.cpp
Fix some minor code issues all over the place
[dragonfireclient.git] / src / mapgen / mapgen_v7.cpp
index cc5f5726dd8f6763d294c313ddccdf5bec974cb5..91f004518aefd53dd385e12efc74d857ed8e5254 100644 (file)
@@ -297,7 +297,7 @@ int MapgenV7::getSpawnLevelAtPoint(v2s16 p)
        int iters = 256;
        while (iters > 0 && y <= max_spawn_y) {
                if (!getMountainTerrainAtPoint(p.X, y + 1, p.Y)) {
-                       if (y <= water_level || y > max_spawn_y)
+                       if (y <= water_level)
                                return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
 
                        // y + 1 due to biome 'dust'