From 4426d6e72f87e5d2b4b84c6d2196db21f638659d Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 23 May 2009 17:53:49 +0000 Subject: Add an option that controls whether the tiles build displays tiles in menus or not. (Defaults to true.) Tiled menus may seem like a great feature (and I love them) but they can also be a bit confusing/distracting (though much less so now than they used to be), and I respect that. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9799 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/menu.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/menu.cc') diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 20c45769e7..3ae400beeb 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -721,6 +721,9 @@ bool MenuEntry::get_tiles(std::vector& tileset) const bool MonsterMenuEntry::get_tiles(std::vector& tileset) const { + if (!Options.tile_menu_icons) + return (false); + monsters *m = (monsters*)(data); if (!m) return (false); @@ -805,6 +808,9 @@ bool MonsterMenuEntry::get_tiles(std::vector& tileset) const bool FeatureMenuEntry::get_tiles(std::vector& tileset) const { + if (!Options.tile_menu_icons) + return (false); + if (!in_bounds(pos)) return (false); -- cgit v1.2.3-54-g00ecf