From 174285f29878c7171c84848ae9282a9efa546bd6 Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 29 Jul 2013 00:10:44 +0400 Subject: [PATCH] Warnings fix --- src/map.cpp | 1 + src/mapgen_math.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map.cpp b/src/map.cpp index de04e5fbd..9c658ba3f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "nodedef.h" #include "gamedef.h" #include "util/directiontables.h" +#include "util/mathconstants.h" #include "rollback_interface.h" #include "emerge.h" #include "mapgen_v6.h" diff --git a/src/mapgen_math.cpp b/src/mapgen_math.cpp index f2b17896d..7748895b5 100644 --- a/src/mapgen_math.cpp +++ b/src/mapgen_math.cpp @@ -255,7 +255,7 @@ int MapgenMath::generateTerrain() { */ for (s16 z = node_min.Z; z <= node_max.Z; z++) { for (s16 x = node_min.X; x <= node_max.X; x++, index++) { - Biome *biome = bmgr->biomes[biomemap[index]]; + //Biome *biome = bmgr->biomes[biomemap[index]]; u32 i = vm->m_area.index(x, node_min.Y, z); for (s16 y = node_min.Y; y <= node_max.Y; y++) { v3f vec = (v3f(x, y, z) - center) * scale ;