src/viewport.cpp
changeset 6448 7a1305b9f475
parent 6443 63fbe9f76801
child 6453 226bcddeba32
equal deleted inserted replaced
6447:aa9fd2e33a1e 6448:7a1305b9f475
  1203 
  1203 
  1204 		SetDParam(0, ss->params[0]);
  1204 		SetDParam(0, ss->params[0]);
  1205 		SetDParam(1, ss->params[1]);
  1205 		SetDParam(1, ss->params[1]);
  1206 		/* if we didn't draw a rectangle, or if transparant building is on,
  1206 		/* if we didn't draw a rectangle, or if transparant building is on,
  1207 		 * draw the text in the color the rectangle would have */
  1207 		 * draw the text in the color the rectangle would have */
  1208 		if ((
  1208 		if (HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806 && ss->width != 0) {
  1209 					HASBIT(_transparent_opt, TO_BUILDINGS) ||
       
  1210 					(HASBIT(_transparent_opt, TO_SIGNS) && ss->string != STR_2806)
       
  1211 				) && ss->width != 0) {
       
  1212 			/* Real colors need the IS_PALETTE_COLOR flag
  1209 			/* Real colors need the IS_PALETTE_COLOR flag
  1213 			 * otherwise colors from _string_colormap are assumed. */
  1210 			 * otherwise colors from _string_colormap are assumed. */
  1214 			colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR;
  1211 			colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR;
  1215 		} else {
  1212 		} else {
  1216 			colour = 16;
  1213 			colour = 16;