From 6d55489368c8f2324d0ff43d4caad60478902b58 Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 14 Sep 2004 15:46:21 +0000 Subject: (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 --- town_gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- cgit v1.2.3-54-g00ecf