From b615ae70153454e2e353d9bf5aac0dfe7d251018 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 8 Sep 2009 22:48:37 +0000 Subject: [PATCH] (svn r17481) -Fix (r16998): in cases where the northern most tile of an airport-to-build didn't touch the station you wanted it to join, but another part did, it wouldn't join the airport to the existing station --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index a603b40bfd..17aa46ed6f 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1928,7 +1928,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint } Station *st = NULL; - CommandCost ret = FindJoiningStation(INVALID_STATION, station_to_join, HasBit(p2, 0), TileArea(tile, 1, 1), &st); + CommandCost ret = FindJoiningStation(INVALID_STATION, station_to_join, HasBit(p2, 0), TileArea(tile, w, h), &st); if (CmdFailed(ret)) return ret; /* Distant join */