summaryrefslogtreecommitdiff
path: root/bridge_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-10 07:15:58 +0000
committertron <tron@openttd.org>2006-04-10 07:15:58 +0000
commit35e93e451fbf0b88401d9af137b2423fefe1dc58 (patch)
treef8613338e934555520fd9b45b411e8a946c5be7a /bridge_gui.c
parentb0b5641639e042399e0ee3886740999678bc63ea (diff)
downloadopenttd-35e93e451fbf0b88401d9af137b2423fefe1dc58.tar.xz
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
Diffstat (limited to 'bridge_gui.c')
-rw-r--r--bridge_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge_gui.c b/bridge_gui.c
index 778c7b93a..fab13c39d 100644
--- a/bridge_gui.c
+++ b/bridge_gui.c
@@ -128,7 +128,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, byte bridge_type)
// only query bridge building possibility once, result is the same for all bridges!
// returns CMD_ERROR on failure, and price on success
- ret = DoCommandByTile(end, start, (bridge_type << 8), DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE);
+ ret = DoCommand(end, start, (bridge_type << 8), DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE);
if (CmdFailed(ret)) {
errmsg = _error_message;