diff options
author | frosch <frosch@openttd.org> | 2009-01-12 15:29:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-01-12 15:29:40 +0000 |
commit | 9a80c0b1dea92a87cd1c35f848a7e0e714494db1 (patch) | |
tree | b8e779cb88506e99b33716d145efd13c104b7f26 | |
parent | 508fc292219a07717b2b8449fbb5a11e02ddef83 (diff) | |
download | openttd-9a80c0b1dea92a87cd1c35f848a7e0e714494db1.tar.xz |
(svn r15015) -Fix (r14919): Distant-join always failed for docks. Based on patch by PhilSophus.
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index dca791db2..2902a8121 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1206,7 +1206,7 @@ static const WindowDesc _select_station_desc = { */ static bool StationJoinerNeeded(CommandContainer cmd, int w, int h) { - if (CmdFailed(DoCommand(&cmd, DC_NO_WATER | DC_AUTO))) return false; + if (CmdFailed(DoCommand(&cmd, CommandFlagsToDCFlags(GetCommandFlags(cmd.cmd))))) return false; /* Only show selection if distant join is enabled in the settings */ if (!_settings_game.station.distant_join_stations) return false; |