Mercurial > hg > openttd
changeset 12987:9edddc9980f5 draft
(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
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 08 Sep 2009 22:48:37 +0000 |
parents | ac5dc29676bc |
children | 6e086aa128a1 |
files | src/station_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1928,7 +1928,7 @@ } 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 */