diff options
author | proller <proller@github.com> | 2013-07-27 22:34:30 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2013-07-27 23:21:48 +0400 |
commit | 3aedfac9685c2d9ae8bac5a5b7e72e527f22c08d (patch) | |
tree | d1f9067040acb0b5dad42a2ae8935b91124a36d3 /src/game.cpp | |
parent | e65d8ad6553d7ae0acf63b43e9818059088a00b6 (diff) | |
download | dragonfireclient-3aedfac9685c2d9ae8bac5a5b7e72e527f22c08d.tar.xz |
Weather support
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 3f14f09d4..0c7d15d0c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2455,6 +2455,7 @@ void the_game( 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(); @@ -3034,7 +3035,9 @@ void the_game( <<", "<<(player_position.Y/BS) <<", "<<(player_position.Z/BS) <<") (yaw="<<(wrapDegrees_0_360(camera_yaw)) - <<") (seed = "<<((unsigned long long)client.getMapSeed()) + <<") (t="<<client.getEnv().getClientMap().getHeat(pos_i) + <<"C, h="<<client.getEnv().getClientMap().getHumidity(pos_i) + <<"%) (seed = "<<((unsigned long long)client.getMapSeed()) <<")"; guitext2->setText(narrow_to_wide(os.str()).c_str()); guitext2->setVisible(true); |