diff options
author | tron <tron@openttd.org> | 2006-04-10 07:15:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-10 07:15:58 +0000 |
commit | 35e93e451fbf0b88401d9af137b2423fefe1dc58 (patch) | |
tree | f8613338e934555520fd9b45b411e8a946c5be7a /rail_gui.c | |
parent | b0b5641639e042399e0ee3886740999678bc63ea (diff) | |
download | openttd-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 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c index f641a551e..82182afb2 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -480,7 +480,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) case WE_PLACE_PRESIZE: { TileIndex tile = e->place.tile; - DoCommandByTile(tile, 0, 0, DC_AUTO, CMD_BUILD_TUNNEL); + DoCommand(tile, 0, 0, DC_AUTO, CMD_BUILD_TUNNEL); VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile); } break; |