train_cmd.c
changeset 1214 33e07bbb7779
parent 1209 a1ac96655b79
child 1221 2b159ebb4899
equal deleted inserted replaced
1213:bb9906f67932 1214:33e07bbb7779
  2077 }
  2077 }
  2078 
  2078 
  2079 /* Check if the vehicle is compatible with the specified tile */
  2079 /* Check if the vehicle is compatible with the specified tile */
  2080 static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile)
  2080 static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile)
  2081 {
  2081 {
  2082 	switch (TileType(tile)) {
  2082 	switch (GetTileType(tile)) {
  2083 		case MP_RAILWAY:
  2083 		case MP_RAILWAY:
  2084 		case MP_STATION:
  2084 		case MP_STATION:
  2085 			// normal tracks, jump to owner check
  2085 			// normal tracks, jump to owner check
  2086 			break;
  2086 			break;
  2087 
  2087