summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-14 15:46:21 +0000
committerdarkvater <darkvater@openttd.org>2004-09-14 15:46:21 +0000
commit6d55489368c8f2324d0ff43d4caad60478902b58 (patch)
treeb6add901b8e56e6c5d39c4469633322ca831b82b
parent586fdf7254f45703293a8c9144d6753fcadf63b9 (diff)
downloadopenttd-6d55489368c8f2324d0ff43d4caad60478902b58.tar.xz
(svn r247) -Fix: Town exclusivity was not shown in town-window because stringformat ({YELLOW}) overrode colour-code. Now the exclusive player gets a red icon in front of its name
-rw-r--r--town_gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/town_gui.c b/town_gui.c
index 36d856c84..c024b9c4b 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -133,7 +133,10 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
So we'll just shift the rating one back if player is AI and all is fine
*/
SET_DPARAM16((IS_HUMAN_PLAYER(p->index) ? 4 : 3), str);
- DrawString(19, y, STR_2024, (t->exclusivity==p->index)?3:0);
+ if (t->exclusivity == p->index) // red icon for player with exclusive rights
+ DrawSprite((SPR_OPENTTD_BASE + 10) | 0x30b8000, 18, y);
+
+ DrawString(28, y, STR_2024, 0);
y+=10;
}
}