summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-10 23:20:14 +0000
committerdarkvater <darkvater@openttd.org>2004-09-10 23:20:14 +0000
commita956b63b413e4f8b7a031c49dea95c2aa98537f0 (patch)
treee361e41ae431899c94ee20f1334337b88f1add94 /industry_gui.c
parent80cb0b7fd67758743208bff73d0a13cec39e62dc (diff)
downloadopenttd-a956b63b413e4f8b7a031c49dea95c2aa98537f0.tar.xz
(svn r198) -Fix: [1020269] Different production? Wrong production amount was showed in the industry list window
-Fix: Show industry list is now the first dropdown item. Second is Fund Industry.
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/industry_gui.c b/industry_gui.c
index cef336042..3e05c79d0 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -494,11 +494,11 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e)
SET_DPARAM16(0, i->town->index);
SET_DPARAM16(1, i->type + STR_4802_COAL_MINE);
if (i->produced_cargo[0] != 0xFF) {
- SET_DPARAM16(3, i->total_production[0] * 100 >> 8);
+ SET_DPARAM16(3, i->total_production[0]);
SET_DPARAM16(2, _cargoc.names_long_s[i->produced_cargo[0]] + ((i->total_production[0]!=1)<<5));
if (i->produced_cargo[1] != 0xFF) {
- SET_DPARAM16(5, i->total_production[1] * 100 >> 8);
+ SET_DPARAM16(5, i->total_production[1]);
SET_DPARAM16(4, _cargoc.names_long_s[i->produced_cargo[1]] + ((i->total_production[1]!=1)<<5));
SET_DPARAM16(6, i->pct_transported[0] * 100 >> 8);
SET_DPARAM16(7, i->pct_transported[1] * 100 >> 8);