diff options
author | frosch <frosch@openttd.org> | 2010-09-13 19:45:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-13 19:45:39 +0000 |
commit | 3fb7f5aa87251bb261387c178105e76d0ec937d0 (patch) | |
tree | 7e430ef91eec46c7c804c3f6f7d21fdbcff08b0b /src/bridge_gui.cpp | |
parent | cb4261d6c39ad2a434e902363ac995771e413ff5 (diff) | |
download | openttd-3fb7f5aa87251bb261387c178105e76d0ec937d0.tar.xz |
(svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI.
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r-- | src/bridge_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index 4b55a0e4b..303979754 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -383,7 +383,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo /* only query bridge building possibility once, result is the same for all bridges! * returns CMD_ERROR on failure, and price on success */ StringID errmsg = INVALID_STRING_ID; - CommandCost ret = DoCommand(end, start, type, DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE); + CommandCost ret = DoCommand(end, start, type, CommandFlagsToDCFlags(GetCommandFlags(CMD_BUILD_BRIDGE)) | DC_QUERY_COST, CMD_BUILD_BRIDGE); GUIBridgeList *bl = NULL; if (ret.Failed()) { |