diff options
author | dominik <dominik@openttd.org> | 2005-01-25 15:38:36 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-25 15:38:36 +0000 |
commit | d439221c62fb6dc95192c68659fd68e4a85f60a2 (patch) | |
tree | 7e95f59e35354d3577e4d77bd75a70d6b754d706 /viewport.c | |
parent | 03ba24dd6548e4d96e6090f6d18b7dbfdbb96bd8 (diff) | |
download | openttd-d439221c62fb6dc95192c68659fd68e4a85f60a2.tar.xz |
(svn r1667) - Feature: Signs are now shown in the color of the player who created them
(Note: The player information is currently not stored in savegames. Upon loading a game the signs will all be gray again)
Diffstat (limited to 'viewport.c')
-rw-r--r-- | viewport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c index 78ac0fda3..b4e86d0e5 100644 --- a/viewport.c +++ b/viewport.c @@ -930,7 +930,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]; } } } |