From ce6a7efb9404d67af78ecd3a42d2e4f430b8cbab Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 26 Oct 2007 11:32:57 +0000 Subject: Fix bug 1814617: teleport/banish not clearing being trapped in net git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2588 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 034a9885cd..05cf9168c3 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -49,6 +49,7 @@ #include "state.h" #include "stuff.h" #include "terrain.h" +#include "traps.h" #include "view.h" #include "xom.h" @@ -273,6 +274,9 @@ void banished(dungeon_feature_type gate_type, const std::string &who) take_note(Note(NOTE_MESSAGE, 0, 0, what.c_str()), true); } + // no longer held in net + clear_trapping_net(); + down_stairs(you.your_level, gate_type, you.entry_cause); // heh heh } -- cgit v1.2.3-54-g00ecf