diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 13:13:40 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 13:13:40 +0000 |
commit | ed3c8c2ae59a947f065499f63daa03fec3a6840d (patch) | |
tree | fa2d6529968da6fa33359f3961697b6e405c65b3 /crawl-ref/source/misc.cc | |
parent | 2368157486f9e3c0806d3d79e939fbc3533eb105 (diff) | |
download | crawl-ref-ed3c8c2ae59a947f065499f63daa03fec3a6840d.tar.gz crawl-ref-ed3c8c2ae59a947f065499f63daa03fec3a6840d.zip |
Clearing trapping nets moved into player::moveto() and level change.
This fixes some bugs (e.g. Portal spell and nets interact properly.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9036 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 4587200875..e419a646fc 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1723,6 +1723,10 @@ void up_stairs(dungeon_feature_type force_stair, if (_marker_vetoes_level_change()) return; + // Magical level changes (don't exist yet in this direction) + // need this. + clear_trapping_net(); + // Checks are done, the character is committed to moving between levels. leaving_level_now(); @@ -2096,6 +2100,10 @@ void down_stairs( int old_level, dungeon_feature_type force_stair, const level_id destination_override(_stair_destination_override()); // All checks are done, the player is on the move now. + + // Magical level changes (Portal, Banishment) need this. + clear_trapping_net(); + // Fire level-leaving trigger. leaving_level_now(); |