src/station_cmd.cpp
changeset 8226 c66a40c8e9bf
parent 8155 db4561087736
child 8235 fc75e5ad02b6
equal deleted inserted replaced
8225:7cf635a89c7d 8226:c66a40c8e9bf
  1243 		MarkTileDirtyByTile(tile);
  1243 		MarkTileDirtyByTile(tile);
  1244 		YapfNotifyTrackLayoutChange(tile, GetRailStationTrack(tile));
  1244 		YapfNotifyTrackLayoutChange(tile, GetRailStationTrack(tile));
  1245 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1245 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1246 	}
  1246 	}
  1247 
  1247 
  1248 	return CommandCost(_price.build_rail / 2);
  1248 	return CommandCost(RailBuildCost(totype) / 2);
  1249 }
  1249 }
  1250 
  1250 
  1251 /**
  1251 /**
  1252  * @param truck_station Determines whether a stop is RoadStop::BUS or RoadStop::TRUCK
  1252  * @param truck_station Determines whether a stop is RoadStop::BUS or RoadStop::TRUCK
  1253  * @param st The Station to do the whole procedure for
  1253  * @param st The Station to do the whole procedure for