station_cmd.c
changeset 2805 b6098e7ca457
parent 2793 d613eb566917
child 2817 58dcead3f545
equal deleted inserted replaced
2804:b932fe148d36 2805:b6098e7ca457
  1063 	}
  1063 	}
  1064 
  1064 
  1065 	return cost;
  1065 	return cost;
  1066 }
  1066 }
  1067 
  1067 
       
  1068 static bool TileBelongsToRailStation(const Station *st, TileIndex tile)
       
  1069 {
       
  1070 	return IsTileType(tile, MP_STATION) && _m[tile].m2 == st->index && _m[tile].m5 < 8;
       
  1071 }
       
  1072 
  1068 static void MakeRailwayStationAreaSmaller(Station *st)
  1073 static void MakeRailwayStationAreaSmaller(Station *st)
  1069 {
  1074 {
  1070 	uint w = st->trainst_w;
  1075 	uint w = st->trainst_w;
  1071 	uint h = st->trainst_h;
  1076 	uint h = st->trainst_h;
  1072 	TileIndex tile = st->train_tile;
  1077 	TileIndex tile = st->train_tile;