diff options
author | peter1138 <peter1138@openttd.org> | 2007-02-20 22:09:21 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-02-20 22:09:21 +0000 |
commit | ef2daa5060e251834e82df1ba3e081579ff84f2f (patch) | |
tree | 9caff20858ac3f06265e4f69d54b9cdb03a47004 /src/industry_cmd.cpp | |
parent | 6621beb126c4bf1481b9d7826f3efd10c2bb8308 (diff) | |
download | openttd-ef2daa5060e251834e82df1ba3e081579ff84f2f.tar.xz |
(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 0cb46211b..525177c2d 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -26,6 +26,7 @@ #include "date.h" #include "water_map.h" #include "tree_map.h" +#include "cargotype.h" void ShowIndustryViewWindow(int industry); void BuildOilRig(TileIndex tile); @@ -1624,7 +1625,7 @@ static void ExtChangeIndustryProduction(Industry *i) mag = abs(percent); if (mag >= 10) { SetDParam(2, mag); - SetDParam(0, _cargoc.names_s[i->produced_cargo[j]]); + SetDParam(0, GetCargo(i->produced_cargo[j])->name); SetDParam(1, i->index); AddNewsItem( percent >= 0 ? STR_INDUSTRY_PROD_GOUP : STR_INDUSTRY_PROD_GODOWN, |