(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.
This commit is contained in:
belugas
2007-04-26 20:20:12 +00:00
parent 76358226d0
commit 73a0ccdf9a
3 changed files with 44 additions and 76 deletions

View File

@@ -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();