aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorproller <proller@github.com>2014-04-18 21:08:03 +0400
committerproller <proller@github.com>2014-04-18 21:56:48 +0400
commit0279f32db742f06d24a9d01c46f7d70c5e570eb2 (patch)
tree217f49380e9e363a5086468c14168c8efd9b3f26 /src/game.cpp
parent674be38fc262aab78ed75141c70e5c02830ca80d (diff)
downloadminetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.gz
minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.bz2
minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.zip
Remove liquid_finite and weather
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 1ad06acb1..a4a21e0a9 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1642,8 +1642,6 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
Hud hud(driver, smgr, guienv, font, text_height,
gamedef, player, &local_inventory);
- bool use_weather = g_settings->getBool("weather");
-
core::stringw str = L"Minetest [";
str += driver->getName();
str += "]";
@@ -3111,8 +3109,6 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
fog_range = 100000*BS;
else {
fog_range = draw_control.wanted_range*BS + 0.0*MAP_BLOCKSIZE*BS;
- if(use_weather)
- fog_range *= (1.5 - 1.4*(float)client.getEnv().getClientMap().getHumidity(pos_i)/100);
fog_range = MYMIN(fog_range, (draw_control.farthest_drawn+20)*BS);
fog_range *= 0.9;
}
@@ -3262,9 +3258,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
<<", "<<(player_position.Y/BS)
<<", "<<(player_position.Z/BS)
<<") (yaw="<<(wrapDegrees_0_360(camera_yaw))
- <<") (t="<<client.getEnv().getClientMap().getHeat(pos_i)
- <<"C, h="<<client.getEnv().getClientMap().getHumidity(pos_i)
- <<"%) (seed = "<<((u64)client.getMapSeed())
+ <<") (seed = "<<((u64)client.getMapSeed())
<<")";
guitext2->setText(narrow_to_wide(os.str()).c_str());
guitext2->setVisible(true);