station_cmd.c
changeset 3503 425903b204fa
parent 3491 4c8427796c64
child 3515 b14c49efef1e
equal deleted inserted replaced
3502:d41ccd2fb5c5 3503:425903b204fa
  1933 
  1933 
  1934 	image = t->ground_sprite;
  1934 	image = t->ground_sprite;
  1935 	if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator;
  1935 	if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator;
  1936 
  1936 
  1937 	// For custom sprites, there's no railtype-based pitching.
  1937 	// For custom sprites, there's no railtype-based pitching.
  1938 	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : railtype;
  1938 	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : GetRailTypeInfo(railtype)->custom_ground_offset;
  1939 	image += offset;
  1939 	image += offset;
  1940 
  1940 
  1941 	// station_land array has been increased from 82 elements to 114
  1941 	// station_land array has been increased from 82 elements to 114
  1942 	// but this is something else. If AI builds station with 114 it looks all weird
  1942 	// but this is something else. If AI builds station with 114 it looks all weird
  1943 	DrawGroundSprite(image);
  1943 	DrawGroundSprite(image);