From 9d0e2ffefbe12fd4fe474485939be785410ebbee Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 12 Jan 2009 15:29:40 +0000 Subject: (svn r15015) -Fix (r14919): Distant-join always failed for docks. Based on patch by PhilSophus. --- src/station_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2