summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-04-26 20:20:12 +0000
committerbelugas <belugas@openttd.org>2007-04-26 20:20:12 +0000
commit5912b08890df4b5fd7cb9c532542da275fd9736d (patch)
tree743fdf6488d51e04c9d27425ebaed90edc003db2 /src/newgrf.cpp
parent5577d5c86cd5c7a7eeea0fe7f36128974c41870d (diff)
downloadopenttd-5912b08890df4b5fd7cb9c532542da275fd9736d.tar.xz
(svn r9721) -Codechange: -Codechange: Cleanup of industry_cmd (Step-12). Dynamically build the legends (name and color) for industries in the smallmap_gui.
All the tiny fonts industry names should be removed from language files soon.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 495428536..6ee9be4ac 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -38,6 +38,7 @@
#include "helpers.hpp"
#include "table/town_land.h"
#include "cargotype.h"
+#include "industry.h"
/* TTDPatch extended GRF format codec
* (c) Petr Baudis 2004 (GPL'd)
@@ -4769,6 +4770,9 @@ static void AfterLoadGRFs()
/* Add all new houses to the house array. */
FinaliseHouseArray();
+ /* Create dynamic list of industry legends for smallmap_gui.cpp */
+ BuildIndustriesLegend();
+
/* Map cargo strings. This is a separate step because cargos are
* loaded before strings... */
MapNewCargoStrings();