summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-16 17:45:24 +0000
committerfrosch <frosch@openttd.org>2014-02-16 17:45:24 +0000
commit55502341ac4975e2e5bf0661b094fa3d4e7fe890 (patch)
treeb9af05a42afcf280c0141d06090749b666a0717f /src/town_cmd.cpp
parent20785c79fc2437683eb59ebdf98dde0ce1863c2c (diff)
downloadopenttd-55502341ac4975e2e5bf0661b094fa3d4e7fe890.tar.xz
(svn r26346) -Fix [FS#5870]: Call Layouter::ReduceLineCache from GenerateTownName in all cases.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 7ca11fe31..d3c480af1 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -46,7 +46,6 @@
#include "object_base.h"
#include "ai/ai.hpp"
#include "game/game.hpp"
-#include "gfx_layout.h"
#include "table/strings.h"
#include "table/town_land.h"
@@ -1909,13 +1908,6 @@ bool GenerateTowns(TownLayout layout)
* Note that this is really a suggested value, not a required one.
* We would not like the system to lock up just because the user wanted 100 cities on a 64*64 map, would we? */
do {
- if (total % 512 == 0) {
- /* Clear the caches regularly, otherwise it will only be done
- * at the end of the whole cycle when OpenTTD has allocated
- * lots and lots of memory for these essentially caches. */
- Layouter::ReduceLineCache();
- }
-
bool city = (_settings_game.economy.larger_towns != 0 && Chance16(1, _settings_game.economy.larger_towns));
IncreaseGeneratingWorldProgress(GWP_TOWN);
/* Get a unique name for the town. */