rail_cmd.c
changeset 2668 54d9f9d4dca3
parent 2667 78b3c154afa4
child 2670 34970983ef08
equal deleted inserted replaced
2667:78b3c154afa4 2668:54d9f9d4dca3
  1489 			 * complains about it. If not, we'll remove this check. (Matthijs). */
  1489 			 * complains about it. If not, we'll remove this check. (Matthijs). */
  1490 			 assert(0);
  1490 			 assert(0);
  1491 
  1491 
  1492 		if (ti->tileh != 0) DrawFoundation(ti, ti->tileh);
  1492 		if (ti->tileh != 0) DrawFoundation(ti, ti->tileh);
  1493 
  1493 
  1494 		if (IsRailWaypoint(m5) && HASBIT(_m[ti->tile].m3, 4)) {
  1494 		if (IsRailWaypoint(ti->tile) && HASBIT(_m[ti->tile].m3, 4)) {
  1495 			// look for customization
  1495 			// look for customization
  1496 			const StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4 + 1);
  1496 			const StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4 + 1);
  1497 
  1497 
  1498 			if (stat != NULL) {
  1498 			if (stat != NULL) {
  1499 				DrawTileSeqStruct const *seq;
  1499 				DrawTileSeqStruct const *seq;
  2098 
  2098 
  2099 static void ClickTile_Track(TileIndex tile)
  2099 static void ClickTile_Track(TileIndex tile)
  2100 {
  2100 {
  2101 	if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  2101 	if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  2102 		ShowTrainDepotWindow(tile);
  2102 		ShowTrainDepotWindow(tile);
  2103 	} else if (IsRailWaypoint(_m[tile].m5)) {
  2103 	} else if (IsRailWaypoint(tile)) {
  2104 		ShowRenameWaypointWindow(GetWaypointByTile(tile));
  2104 		ShowRenameWaypointWindow(GetWaypointByTile(tile));
  2105 	}
  2105 	}
  2106 }
  2106 }
  2107 
  2107 
  2108 static void GetTileDesc_Track(TileIndex tile, TileDesc *td)
  2108 static void GetTileDesc_Track(TileIndex tile, TileDesc *td)