Skip to content

Commit

Permalink
Fog depend on humidity
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Sep 16, 2013
1 parent 4c704fe commit 62bc533
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Expand Up @@ -2860,6 +2860,8 @@ void the_game(
fog_range = 100000*BS;
else {
fog_range = draw_control.wanted_range*BS + 0.0*MAP_BLOCKSIZE*BS;
if(g_settings->getBool("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;
}
Expand Down

0 comments on commit 62bc533

Please sign in to comment.