Changeset - r246:493ed095fdc1
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-09-14 15:46:21
darkvater@openttd.org
(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
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
town_gui.c
Show inline comments
 
@@ -133,7 +133,10 @@ static void TownAuthorityWndProc(Window 
 
							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;
 
				}
 
			}
0 comments (0 inline, 0 general)