Changeset - r17404:52b8687895e3
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2011-03-03 19:26:18
yexo@openttd.org
(svn r22163) -Fix [FS#4541]: building a station part adjacent to both an existing station and a rail waypoint failed
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -92,9 +92,10 @@ CommandCost GetStationAround(TileArea ta
 
	TILE_AREA_LOOP(tile_cur, ta) {
 
		if (IsTileType(tile_cur, MP_STATION)) {
 
			StationID t = GetStationIndex(tile_cur);
 
			if (!T::IsValidID(t)) continue;
 

	
 
			if (closest_station == INVALID_STATION) {
 
				if (T::IsValidID(t)) closest_station = t;
 
				closest_station = t;
 
			} else if (closest_station != t) {
 
				return_cmd_error(STR_ERROR_ADJOINS_MORE_THAN_ONE_EXISTING);
 
			}
0 comments (0 inline, 0 general)