diff options
Diffstat (limited to 'src/mapgen/dungeongen.cpp')
-rw-r--r-- | src/mapgen/dungeongen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen/dungeongen.cpp b/src/mapgen/dungeongen.cpp index b5d7ec7ad..a4e8c74dc 100644 --- a/src/mapgen/dungeongen.cpp +++ b/src/mapgen/dungeongen.cpp @@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "dungeongen.h" +#include <cmath> #include "mapgen.h" #include "voxel.h" #include "noise.h" @@ -121,7 +122,7 @@ void DungeonGen::generate(MMVManip *vm, u32 bseed, v3s16 nmin, v3s16 nmax) } // Add them - for (u32 i = 0; i < floor(nval_density); i++) + for (u32 i = 0; i < std::floor(nval_density); i++) makeDungeon(v3s16(1, 1, 1) * MAP_BLOCKSIZE); // Optionally convert some structure to alternative structure |