SHARE
TWEET

Untitled

a guest Dec 29th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (flat_world_height >= 0) { // generating a flat world
  2.         /* This doesn't require the extensive computations below */
  3.         int max_value = min(MAX_SNOWLINE_HEIGHT, max((int)MIN_SNOWLINE_HEIGHT, flat_world_height - 2));
  4.         uint half_max_value = max_value / 2 + max_value % 2;
  5.         _settings_game.game_creation.snow_line_height = max(MIN_SNOWLINE_HEIGHT, half_max_value);
  6.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top