From ffe366a5e2fcd7bdbae1e0fb7848ae3799b4a6b4 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 4 Oct 2008 18:18:15 +0000 Subject: Fix 2063470: =f inscription preventing wielding of stones Improve exclusion los behaviour. * now takes into account what the player knows of the map * don't autoremove exclusions if you don't know the monster died * the los gets updated as the player explores the area For some reason this doesn't work when you dig into an excluded area. FR 2006559: Sort monsters in description menu (?\) using the same measure as the monster list does. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7132 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/travel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/travel.h') diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index 77368c23be..700d8635db 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -436,13 +436,15 @@ public: }; void init_exclusion_los(); -void update_exclusion_los(coord_def &p); +void update_exclusion_los(const coord_def &p); +void mark_all_excludes_non_updated(); struct travel_exclude { - coord_def pos; - int radius; - env_show_grid show; + coord_def pos; // exclusion centre + int radius; // exclusion radisu + env_show_grid show; // los from exclusion centre + bool uptodate; // Is show up to date? void set_exclude_show(); -- cgit v1.2.3-54-g00ecf