summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-07-06 19:00:33 +0000
committerfrosch <frosch@openttd.org>2013-07-06 19:00:33 +0000
commitd0eff986be39ba24cf83caf6e96de99416cb02a2 (patch)
treeee0f8e23cc0d36a6f321a1d6a90eaf956471f2e4 /src/openttd.cpp
parent4824cb78863ff8b5ff631631a1fd8b5c8dfba500 (diff)
downloadopenttd-d0eff986be39ba24cf83caf6e96de99416cb02a2.tar.xz
(svn r25570) -Add: cache for ParagraphLayouts.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 07124b84f..90c5d56db 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -61,6 +61,7 @@
#include "game/game_config.hpp"
#include "town.h"
#include "subsidy_func.h"
+#include "gfx_layout.h"
#include "linkgraph/linkgraphschedule.h"
@@ -1318,6 +1319,8 @@ void StateGameLoop()
ClearStorageChanges(false);
+ Layouter::ReduceLineCache();
+
if (_game_mode == GM_EDITOR) {
RunTileLoop();
CallVehicleTicks();