(svn r13549) [NewGRF_ports] -Change: Make recolouring of groundtile (0x0f80) specific to NewGRF_ports only. NewGRF_ports
authorrichk
Tue, 17 Jun 2008 13:41:57 +0000
branchNewGRF_ports
changeset 10995 311b38c7f9a7
parent 10994 cd9968b6f96b
(svn r13549) [NewGRF_ports] -Change: Make recolouring of groundtile (0x0f80) specific to NewGRF_ports only.
Also base groundsprite on airport_tile of station. This prevents mixed colour groundtiles in an airport.
src/station_cmd.cpp
--- a/src/station_cmd.cpp	Tue Jun 17 13:22:13 2008 +0000
+++ b/src/station_cmd.cpp	Tue Jun 17 13:41:57 2008 +0000
@@ -2323,9 +2323,11 @@
 		DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
 	}
 
-	// if ground tile 0x0F8D, but tile is desert/snow, then choose desert/snow graphic
-	if ((image == 0x0F8D) && (GetTropicZone(ti->tile) == TROPICZONE_DESERT))
-		image = 0x11C6;  // snow tile (arctic) or desert tile (tropical)
+	// for FSM ports only, if ground tile 0x0F8D, but airport key tile is desert/snow, then choose desert/snow graphic
+	if (FSMport) {
+		if ((image == 0x0F8D) && (GetTropicZone(st->airport_tile) == TROPICZONE_DESERT))
+			image = 0x11C6;  // snow tile (arctic) or desert tile (tropical)
+	}
 
 	/* station_land array has been increased from 82 elements to 114
 	 * but this is something else. If AI builds station with 114 it looks all weird */