Skip to content
Permalink
Browse files

Fog depend on humidity

  • Loading branch information
proller committed Sep 16, 2013
1 parent 4c704fe commit 62bc5331aad4e2c7cd64d57feb9cf27526842851
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/game.cpp
@@ -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;
}

0 comments on commit 62bc533

Please sign in to comment.
You can’t perform that action at this time.