(svn r21589) -Codechange: Move PlaceLandBlockInfo() to the right file, introduce a ShowLandInfo() function.

This commit is contained in:
alberth
2010-12-21 21:46:19 +00:00
parent 05e7e08430
commit 35a8e91d01
3 changed files with 17 additions and 12 deletions

View File

@@ -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