rail_cmd.c
changeset 2520 8a52362c4ada
parent 2502 a77b8b2f173c
child 2537 5e4ca74e995a
equal deleted inserted replaced
2519:beb11a5ac48c 2520:8a52362c4ada
  1582 			drss++;
  1582 			drss++;
  1583 		}
  1583 		}
  1584 	}
  1584 	}
  1585 }
  1585 }
  1586 
  1586 
  1587 void DrawTrainDepotSprite(int x, int y, int image, int railtype)
  1587 void DrawTrainDepotSprite(int x, int y, int image, RailType railtype)
  1588 {
  1588 {
  1589 	uint32 ormod, img;
  1589 	uint32 ormod, img;
  1590 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
  1590 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
  1591 	const DrawTrackSeqStruct *dtss;
  1591 	const DrawTrackSeqStruct *dtss;
  1592 
  1592 
  1609 		if (image & PALETTE_MODIFIER_COLOR) image |= ormod;
  1609 		if (image & PALETTE_MODIFIER_COLOR) image |= ormod;
  1610 		DrawSprite(image + rti->total_offset, x + pt.x, y + pt.y);
  1610 		DrawSprite(image + rti->total_offset, x + pt.x, y + pt.y);
  1611 	}
  1611 	}
  1612 }
  1612 }
  1613 
  1613 
  1614 void DrawDefaultWaypointSprite(int x, int y, int railtype)
  1614 void DrawDefaultWaypointSprite(int x, int y, RailType railtype)
  1615 {
  1615 {
  1616 	const DrawTrackSeqStruct *dtss = _track_depot_layout_table[4];
  1616 	const DrawTrackSeqStruct *dtss = _track_depot_layout_table[4];
  1617 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
  1617 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
  1618 	uint32 img;
  1618 	uint32 img;
  1619 
  1619