rail_cmd.c
changeset 3527 8f3b8af9e9d3
parent 3526 3a0dddcfd33b
child 3528 ca3ce10452d8
equal deleted inserted replaced
3526:3a0dddcfd33b 3527:8f3b8af9e9d3
  1327 				 * code, it is used to indicate that the sprite
  1327 				 * code, it is used to indicate that the sprite
  1328 				 * should be drawn in company colors, and it's
  1328 				 * should be drawn in company colors, and it's
  1329 				 * up to the GRF file to decide that. */
  1329 				 * up to the GRF file to decide that. */
  1330 
  1330 
  1331 				image = cust->ground_sprite;
  1331 				image = cust->ground_sprite;
  1332 				image += (image < _custom_sprites_base) ? rti->total_offset : GetRailTypeInfo(GetRailType(ti->tile))->custom_ground_offset;
  1332 				image += (image < _custom_sprites_base) ? rti->total_offset : rti->custom_ground_offset;
  1333 
  1333 
  1334 				DrawGroundSprite(image);
  1334 				DrawGroundSprite(image);
  1335 
  1335 
  1336 				if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
  1336 				if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
  1337 
  1337