rail_cmd.c
changeset 4638 8abe4f10b94b
parent 4559 c853d2440065
child 4725 f7284b86833f
equal deleted inserted replaced
4637:59a612e0cb16 4638:8abe4f10b94b
    38 	 0, 21, 17, 12,
    38 	 0, 21, 17, 12,
    39 	23,  0, 18, 20,
    39 	23,  0, 18, 20,
    40 	19, 16
    40 	19, 16
    41 };
    41 };
    42 
    42 
    43 void ShowTrainDepotWindow(TileIndex tile);
       
    44 
    43 
    45 /*         4
    44 /*         4
    46  *     ---------
    45  *     ---------
    47  *    |\       /|
    46  *    |\       /|
    48  *    | \    1/ |
    47  *    | \    1/ |
  1918 }
  1917 }
  1919 
  1918 
  1920 static void ClickTile_Track(TileIndex tile)
  1919 static void ClickTile_Track(TileIndex tile)
  1921 {
  1920 {
  1922 	if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1921 	if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1923 		ShowTrainDepotWindow(tile);
  1922 		ShowDepotWindow(tile, VEH_Train);
  1924 	} else if (IsRailWaypoint(tile)) {
  1923 	} else if (IsRailWaypoint(tile)) {
  1925 		ShowRenameWaypointWindow(GetWaypointByTile(tile));
  1924 		ShowRenameWaypointWindow(GetWaypointByTile(tile));
  1926 	}
  1925 	}
  1927 }
  1926 }
  1928 
  1927