summaryrefslogtreecommitdiff
path: root/economy.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 /economy.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 'economy.c')
-rw-r--r--economy.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/economy.c b/economy.c
index 4864c2a1b..4251626ec 100644
--- a/economy.c
+++ b/economy.c
@@ -807,23 +807,20 @@ Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode)
SetDParam(1, STR_2029);
i = GetIndustry(s->from);
tile = i->xy;
- SetDParam(2, i->town->townnametype);
- SetDParam(3, i->town->townnameparts);
-
- SetDParam(4, i->type + STR_4802_COAL_MINE);
+ SetDParam(2, i->town->index);
+ SetDParam(3, i->type + STR_4802_COAL_MINE);
if (s->cargo_type != CT_GOODS && s->cargo_type != CT_FOOD) {
- SetDParam(5, STR_2029);
+ SetDParam(4, STR_2029);
i = GetIndustry(s->to);
tile2 = i->xy;
- SetDParam(8, i->type + STR_4802_COAL_MINE);
- SetDParam(6, i->town->townnametype);
- SetDParam(7, i->town->townnameparts);
+ SetDParam(5, i->town->index);
+ SetDParam(6, i->type + STR_4802_COAL_MINE);
} else {
t = GetTown(s->to);
tile2 = t->xy;
- SetDParam(5, t->townnametype);
- SetDParam(6, t->townnameparts);
+ SetDParam(4, t->townnametype);
+ SetDParam(5, t->townnameparts);
}
} else {
t = GetTown(s->from);
@@ -833,8 +830,8 @@ Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode)
t = GetTown(s->to);
tile2 = t->xy;
- SetDParam(3, t->townnametype);
- SetDParam(4, t->townnameparts);
+ SetDParam(4, t->townnametype);
+ SetDParam(5, t->townnameparts);
}
} else {
st = GetStation(s->from);