* Find a nearby station that joins this road stop. * @param existing_stop an existing road stop we build over * @param station_to_join the station to join to * @param adjacent whether adjacent stations are allowed * @param ta the area of the newly build station * @param st 'return' pointer for the found station * @return command cost with the error or 'okay' */
| 2005 | * @return command cost with the error or 'okay' |
| 2006 | */ |
| 2007 | static CommandCost FindJoiningRoadStop(StationID existing_stop, StationID station_to_join, bool adjacent, TileArea ta, Station **st) |
| 2008 | { |
| 2009 | return FindJoiningBaseStation<Station, STR_ERROR_MUST_REMOVE_ROAD_STOP_FIRST>(existing_stop, station_to_join, adjacent, ta, st, [](const Station *) -> bool { return true; }); |
| 2010 | } |
| 2011 | |
| 2012 | /** |
| 2013 | * Calculates cost of new road stops within the area. |