diff options
author | dominik <dominik@openttd.org> | 2005-01-25 20:47:02 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-25 20:47:02 +0000 |
commit | 04c2f1dd6c7b15b60102d2724256675558a36b55 (patch) | |
tree | 3eb3d5fe032480b8cd0389623eec588385ff2b99 | |
parent | 8a1aff126b60a9882b49f3a1d11445a86e528601 (diff) | |
download | openttd-04c2f1dd6c7b15b60102d2724256675558a36b55.tar.xz |
(svn r1674) - Fix: Signs are now displayed in the correct color at all zoom levels
-rw-r--r-- | viewport.c | 6 |
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]; } } } |