(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
authorpeter1138
Wed, 11 Apr 2007 20:13:32 +0000
changeset 6448 7a1305b9f475
parent 6447 aa9fd2e33a1e
child 6449 9fb140dd2e05
(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
src/viewport.cpp
--- a/src/viewport.cpp	Wed Apr 11 20:03:05 2007 +0000
+++ b/src/viewport.cpp	Wed Apr 11 20:13:32 2007 +0000
@@ -1205,10 +1205,7 @@
 		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;