summaryrefslogtreecommitdiff
path: root/town_gui.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-23 21:04:39 +0000
committerdominik <dominik@openttd.org>2004-08-23 21:04:39 +0000
commit770f86bbbe89401ddae8518910a6875af65c0ac3 (patch)
treed6c03495cca54829908bbe695956a762e7f6a6ef /town_gui.c
parent1d1d14ebd3e4d85683f61d120944646864cebe4f (diff)
downloadopenttd-770f86bbbe89401ddae8518910a6875af65c0ac3.tar.xz
(svn r122) Change: exclusive transport rights are now stored per town instead of per station
Exclusive rights from old savegames will be reset.
Diffstat (limited to 'town_gui.c')
-rw-r--r--town_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/town_gui.c b/town_gui.c
index 2b867607b..6a9a284c5 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -109,9 +109,9 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
// Draw list of players
y = 25;
FOR_ALL_PLAYERS(p) {
- if (p->is_active && HASBIT(t->have_ratings, p->index)) {
- DrawPlayerIcon(p->index, 2, y);
-
+ if (p->is_active && (HASBIT(t->have_ratings, p->index) || t->exclusivity==p->index)) {
+ if(t->exclusivity==p->index) DrawPlayerIcon(p->index, 2, y);
+
SET_DPARAM16(0, p->name_1);
SET_DPARAM32(1, p->name_2);
SET_DPARAM16(2, GetPlayerNameString(p->index, 3));
@@ -133,7 +133,7 @@ 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, 0);
+ DrawString(19, y, STR_2024, (t->exclusivity==p->index)?3:0);
y+=10;
}
}