From 47a37b6093c3bb93dba81e4d3440c4098699a849 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Jul 2009 21:07:03 +0000 Subject: (svn r16965) -Codechange: use tile area instead of sets of variables for the station joiner code. --- src/dock_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dock_gui.cpp') diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index f7aed41ed..f2d357872 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -50,7 +50,7 @@ static void PlaceDocks_Dock(TileIndex tile) /* tile is always the land tile, so need to evaluate _thd.pos */ CommandContainer cmdcont = { tile, _ctrl_pressed, p2, CMD_BUILD_DOCK | CMD_MSG(STR_ERROR_CAN_T_BUILD_DOCK_HERE), CcBuildDocks, "" }; - ShowSelectStationIfNeeded(cmdcont, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE); + ShowSelectStationIfNeeded(cmdcont, TileArea(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE)); } static void PlaceDocks_Depot(TileIndex tile) -- cgit v1.2.3-54-g00ecf