From c98e65d7c1e611743f82997954c259dedbe843b2 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 1 Dec 2007 19:38:40 +0000 Subject: Added a function, apply_to_all_dungeons(), which basically acts as a Visitor for every dungeon level. The idea is to use this for galaxy-spanning effects, e.g. if you want to shuffle all the decks in existence or deconvert all the Beogh-converted orcs. Not well tested; might be buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2960 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/view.cc') diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index fbdf5cab3b..889c46a503 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1030,14 +1030,14 @@ void fire_monster_alerts() // Monster was not viewed this turn monster->flags &= ~MF_WAS_IN_VIEW; } - monster->seen_context = ""; + monster->seen_context.clear(); } // Xom thinks it's hilarious the way the player picks up an ever // growing entourage of monsters while running through the Abyss. // To approximate this, if the number of hostile monsters in view // is greater than it ever was for this particular trip to the - // Abyss, Xom is stimulated in proprotion to the number of + // Abyss, Xom is stimulated in proportion to the number of // hostile monsters. Thus if the entourage doesn't grow, then // Xom becomes bored. if (you.level_type == LEVEL_ABYSS -- cgit v1.2.3-54-g00ecf