From 4977b736e3be522a6becaabbd53d380a767a3a53 Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 19 Apr 2014 02:24:45 +0400 Subject: [PATCH] Fix warnings --- src/game.cpp | 1 - src/map.cpp | 1 - src/mapgen.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index a4a21e0a..9f1609aa 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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(); diff --git a/src/map.cpp b/src/map.cpp index de8e1107..86ad9ecb 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 5e393901..1a31a8bc 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -977,7 +977,7 @@ void Mapgen::updateHeightmap(v3s16 nmin, v3s16 nmax) { void Mapgen::updateLiquid(UniqueQueue *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++) { -- 2.30.2