summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-18 21:44:31 +0000
committerrubidium <rubidium@openttd.org>2010-01-18 21:44:31 +0000
commita8749ffa5be6a0392330324b7756a3f923ab1e35 (patch)
tree82e76e4667002aa43eb3606f338b682601c646ae /src/settings.cpp
parenta203eaf18fc55d1b817fac72764487c18260230b (diff)
downloadopenttd-a8749ffa5be6a0392330324b7756a3f923ab1e35.tar.xz
(svn r18864) -Fix [FS#3532]: town noise population settings could not be changed in-game
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 703012c81..8a091816f 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -896,21 +896,6 @@ static int32 ConvertLandscape(const char *value)
return lookup_oneofmany("normal|hilly|desert|candy", value);
}
-/**
- * Check for decent values been supplied by the user for the noise tolerance setting.
- * The primary idea is to avoid division by zero in game mode.
- * The secondary idea is to make it so the values will be somewhat sane and that towns will
- * not be overcrowed with airports. It would be easy to abuse such a feature
- * So basically, 200, 400, 800 are the lowest allowed values */
-static int32 CheckNoiseToleranceLevel(const char *value)
-{
- GameSettings *s = (_game_mode == GM_MENU) ? &_settings_newgame : &_settings_game;
- for (uint16 i = 0; i < lengthof(s->economy.town_noise_population); i++) {
- s->economy.town_noise_population[i] = max(uint16(200 * (i + 1)), s->economy.town_noise_population[i]);
- }
- return 0;
-}
-
static bool CheckFreeformEdges(int32 p1)
{
if (_game_mode == GM_MENU) return true;