src/station_cmd.cpp
branchNewGRF_ports
changeset 10995 311b38c7f9a7
parent 10994 cd9968b6f96b
equal deleted inserted replaced
10994:cd9968b6f96b 10995:311b38c7f9a7
  2321 			image += total_offset;
  2321 			image += total_offset;
  2322 		}
  2322 		}
  2323 		DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
  2323 		DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
  2324 	}
  2324 	}
  2325 
  2325 
  2326 	// if ground tile 0x0F8D, but tile is desert/snow, then choose desert/snow graphic
  2326 	// for FSM ports only, if ground tile 0x0F8D, but airport key tile is desert/snow, then choose desert/snow graphic
  2327 	if ((image == 0x0F8D) && (GetTropicZone(ti->tile) == TROPICZONE_DESERT))
  2327 	if (FSMport) {
  2328 		image = 0x11C6;  // snow tile (arctic) or desert tile (tropical)
  2328 		if ((image == 0x0F8D) && (GetTropicZone(st->airport_tile) == TROPICZONE_DESERT))
       
  2329 			image = 0x11C6;  // snow tile (arctic) or desert tile (tropical)
       
  2330 	}
  2329 
  2331 
  2330 	/* station_land array has been increased from 82 elements to 114
  2332 	/* station_land array has been increased from 82 elements to 114
  2331 	 * but this is something else. If AI builds station with 114 it looks all weird */
  2333 	 * but this is something else. If AI builds station with 114 it looks all weird */
  2332 	DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
  2334 	DrawGroundSprite(image, HasBit(image, PALETTE_MODIFIER_COLOR) ? palette : PAL_NONE);
  2333 
  2335