diff options
author | peter1138 <peter1138@openttd.org> | 2007-04-11 20:13:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-04-11 20:13:32 +0000 |
commit | 23d9d6cfb40dea39446844a566c80ab149248933 (patch) | |
tree | e6a2071f83d244d5f03a0c812e6d18a7933dc3ca /src | |
parent | 9e967ed6bfc414517eb169d34a1bb815f609a457 (diff) | |
download | openttd-23d9d6cfb40dea39446844a566c80ab149248933.tar.xz |
(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
Diffstat (limited to 'src')
-rw-r--r-- | src/viewport.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 70f45c613..baba22c74 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1205,10 +1205,7 @@ static void ViewportDrawStrings(DrawPixelInfo *dpi, const StringSpriteToDraw *ss SetDParam(1, ss->params[1]); /* if we didn't draw a rectangle, or if transparant building is on, * draw the text in the color the rectangle would have */ - if (( - HASBIT(_transparent_opt, TO_BUILDINGS) || - (HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806) - ) && ss->width != 0) { + if (HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806 && ss->width != 0) { /* Real colors need the IS_PALETTE_COLOR flag * otherwise colors from _string_colormap are assumed. */ colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR; |