Fix warnings
authorproller <proller@github.com>
Fri, 18 Apr 2014 22:24:45 +0000 (02:24 +0400)
committerproller <proller@github.com>
Fri, 18 Apr 2014 22:24:45 +0000 (02:24 +0400)
src/game.cpp
src/map.cpp
src/mapgen.cpp

index a4a21e0a9416b4903d3b81c0cc7b1dca8e67f239..9f1609aa20cfb5a7f70be6f562ea9a1fe2852c09 100644 (file)
@@ -2677,7 +2677,6 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
                camera.step(dtime);
 
                v3f player_position = player->getPosition();
-               v3s16 pos_i = floatToInt(player_position, BS);
                v3f camera_position = camera.getPosition();
                v3f camera_direction = camera.getDirection();
                f32 camera_fov = camera.getFovMax();
index de8e1107bcb0bd4b2f6521b77f51a5dacb06c05e..86ad9ecb8fa53bbf56ad17b1a29c08867f6d5f83 100644 (file)
@@ -2754,7 +2754,6 @@ MapBlock *ServerMap::getBlockOrEmerge(v3s16 p3d)
 }
 
 void ServerMap::prepareBlock(MapBlock *block) {
-       ServerEnvironment *senv = &((Server *)m_gamedef)->getEnv();
 }
 
 s16 ServerMap::findGroundLevel(v2s16 p2d)
index 5e393901aa13e18b4e6ae3812e57e6e4f5d53e02..1a31a8bcb0d728f35c74266a12aaf6490bbf1476 100644 (file)
@@ -977,7 +977,7 @@ void Mapgen::updateHeightmap(v3s16 nmin, v3s16 nmax) {
 
 
 void Mapgen::updateLiquid(UniqueQueue<v3s16> *trans_liquid, v3s16 nmin, v3s16 nmax) {
-       bool isliquid, wasliquid, rare;
+       bool isliquid, wasliquid;
        v3s16 em  = vm->m_area.getExtent();
 
        for (s16 z = nmin.Z; z <= nmax.Z; z++) {