(svn r12851) [NewGRF_ports] -Fix: Slight mis-sync disabled colouring of selection tiles for seaplane airports. NewGRF_ports
authorrichk
Wed, 23 Apr 2008 18:11:25 +0000
branchNewGRF_ports
changeset 10310 c8b1eafc56bd
parent 10305 e90761e37744
child 10336 d15acd4a2baf
(svn r12851) [NewGRF_ports] -Fix: Slight mis-sync disabled colouring of selection tiles for seaplane airports.
src/viewport.cpp
--- a/src/viewport.cpp	Wed Apr 23 03:14:27 2008 +0000
+++ b/src/viewport.cpp	Wed Apr 23 18:11:25 2008 +0000
@@ -903,9 +903,8 @@
 				}
 			}
 			if (_thd.FSMportLayout == NULL) {
-				DrawTileSelectionRect(ti, _thd.make_square_red ? PALETTE_SEL_TILE_RED : PAL_NONE);
+				if (!is_redsq) DrawTileSelectionRect(ti, _thd.make_square_red ? PALETTE_SEL_TILE_RED : PAL_NONE);
 			}
-			if (!is_redsq) DrawTileSelectionRect(ti, _thd.make_square_red ? PALETTE_SEL_TILE_RED : PAL_NONE);
 		} else if (_thd.drawstyle & HT_POINT) {
 			/* Figure out the Z coordinate for the single dot. */
 			byte z = 0;