Warnings fix
authorproller <proller@github.com>
Sun, 28 Jul 2013 20:10:44 +0000 (00:10 +0400)
committerproller <proller@github.com>
Sun, 28 Jul 2013 20:11:33 +0000 (00:11 +0400)
src/map.cpp
src/mapgen_math.cpp

index de04e5fbddc1f34f7151d1b2a0d86aaf4a925a85..9c658ba3f4bb3d1a73e74527e292eff0b51c4e0c 100644 (file)
@@ -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"
index f2b17896d27fb6c3a5a5d36628a58145cd0fc2ca..7748895b53334467d496a4e7cde9245cf1127eb3 100644 (file)
@@ -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 ;