summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-25 20:47:02 +0000
committerdominik <dominik@openttd.org>2005-01-25 20:47:02 +0000
commit346d10172b8c542d7720c158ff1bb6842d6d741c (patch)
tree3eb3d5fe032480b8cd0389623eec588385ff2b99
parent085ae9cab2c81cbe7f573eff2b972e8dd3890aed (diff)
downloadopenttd-346d10172b8c542d7720c158ff1bb6842d6d741c.tar.xz
(svn r1674) - Fix: Signs are now displayed in the correct color at all zoom levels
-rw-r--r--viewport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/viewport.c b/viewport.c
index b4e86d0e5..2bc10ad0d 100644
--- a/viewport.c
+++ b/viewport.c
@@ -947,7 +947,7 @@ static void ViewportAddSigns(DrawPixelInfo *dpi)
sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2806, ss->str, 0, 0);
if (sstd != NULL) {
sstd->width = ss->sign.width_1;
- sstd->color = 14;
+ sstd->color = (ss->owner==OWNER_NONE)?14:_player_colors[ss->owner];
}
}
}
@@ -962,10 +962,10 @@ static void ViewportAddSigns(DrawPixelInfo *dpi)
right > ss->sign.left &&
left < ss->sign.left + ss->sign.width_2*4) {
- sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2807, ss->str, 0, 0);
+ sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2002, ss->str, 0, 0);
if (sstd != NULL) {
sstd->width = ss->sign.width_2 | 0x8000;
- sstd->color = 14;
+ sstd->color = (ss->owner==OWNER_NONE)?14:_player_colors[ss->owner];
}
}
}