summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-08 22:48:37 +0000
committerrubidium <rubidium@openttd.org>2009-09-08 22:48:37 +0000
commitb615ae70153454e2e353d9bf5aac0dfe7d251018 (patch)
tree298afc2e56f5c88e270fffa95110ed7ebd0e7d2b /src
parent37d702b2cecddfff115a05777c13f0de1b4ced49 (diff)
downloadopenttd-b615ae70153454e2e353d9bf5aac0dfe7d251018.tar.xz
(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
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index a603b40bf..17aa46ed6 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 */