summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-15 14:53:44 +0000
committerludde <ludde@openttd.org>2005-07-15 14:53:44 +0000
commit275e2f477a2b1b7fca2b52722ce042aec01c1866 (patch)
treeae57d82a4f417509705d577ea29c99c80b9e579b /industry_gui.c
parent462b0d6686df8b34b535144e06bcbe52a9b8fb8e (diff)
downloadopenttd-275e2f477a2b1b7fca2b52722ce042aec01c1866.tar.xz
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters
- Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 97137fdd9..4f8f25068 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -304,6 +304,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
SetDParam(1, i->total_production[0]);
SetDParam(0, _cargoc.names_long_s[i->produced_cargo[0]] + ((i->total_production[0]!=1)<<5));
+
SetDParam(2, i->pct_transported[0] * 100 >> 8);
DrawString(4 + (NEED_ALTERB ? 30 : 0), 127, STR_482B_TRANSPORTED, 0);
// Let's put out those buttons..