# HG changeset patch # User richk # Date 1213710117 0 # Node ID 311b38c7f9a7faded5253803e95d0d0d388494a4 # Parent cd9968b6f96b9ffb021c16fbd06f5d0187abdfe0 (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. diff -r cd9968b6f96b -r 311b38c7f9a7 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 */