summaryrefslogtreecommitdiff
path: root/town_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 /town_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 'town_gui.c')
-rw-r--r--town_gui.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/town_gui.c b/town_gui.c
index 7ae10afb5..46782e5a7 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -132,13 +132,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
(str++, r <= RATING_EXCELLENT) || // Excellent
(str++, true); // Outstanding
- /* WARNING ugly hack!
- GetPlayerNameString sets up (Player #) if the player is human in an extra DPARAM16
- It seems that if player is non-human, nothing is set up, so param is 0. GetString doesn't like
- that because there is another param after it.
- So we'll just shift the rating one back if player is AI and all is fine
- */
- SetDParam((IS_HUMAN_PLAYER(p->index) ? 4 : 3), str);
+ SetDParam(4, str);
if (t->exclusivity == p->index) // red icon for player with exclusive rights
DrawSprite((SPR_BLOT) | 0x30b8000, 18, y);