From 12de33d2d95164e30a8a2ac960ad28b2a69383e3 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 17 Apr 2008 21:28:56 +0000 Subject: Another modification of autotargetting submerged monsters, based off BR 1935715. * Targeting a square with a known submerged monster ("strange disturbance" description) always enforces '!' rather than '.' * Submerged monsters only get targetted if there are no other more viable targets (dangerous monsters, really) in sight. The latter uses a heavily modified i_feel_safe() that now draws on get_playervisible_monsters(), which got numerous new parameters to cover all possibilities. :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4314 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/invent.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/invent.cc') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 01e5bd5543..f232e5374c 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -537,6 +537,7 @@ const menu_sort_condition *InvMenu::find_menu_sort_condition() const for (int i = 0, size = Options.sort_menus.size(); i < size; ++i) if (Options.sort_menus[i].matches(type)) return &Options.sort_menus[i]; + return (NULL); } -- cgit v1.2.3-54-g00ecf