From 35a8e91d01102262efa8eb9df809c6411a1fd7d6 Mon Sep 17 00:00:00 2001 From: alberth Date: Tue, 21 Dec 2010 21:46:19 +0000 Subject: (svn r21589) -Codechange: Move PlaceLandBlockInfo() to the right file, introduce a ShowLandInfo() function. --- src/misc_gui.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 9e472b1cf..406776376 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -329,22 +329,12 @@ public: } }; -static void Place_LandInfo(TileIndex tile) +void ShowLandInfo(TileIndex tile) { DeleteWindowById(WC_LAND_INFO, 0); new LandInfoWindow(tile); } -void PlaceLandBlockInfo() -{ - if (_cursor.sprite == SPR_CURSOR_QUERY) { - ResetObjectToPlace(); - } else { - _place_proc = Place_LandInfo; - SetObjectToPlace(SPR_CURSOR_QUERY, PAL_NONE, HT_RECT, WC_MAIN_TOOLBAR, 0); - } -} - /** Widgets for the land info window. */ enum AboutWidgets { AW_SCROLLING_TEXT, ///< The actually scrolling text -- cgit v1.2.3-54-g00ecf