mirror of https://github.com/OpenTTD/OpenTTD.git
(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
This commit is contained in:
parent
586fdf7254
commit
6d55489368
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue