summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 15:33:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 15:33:36 +0000
commit0afe4c455bf5a0358cf7f6688b413389a5080fcc (patch)
tree9580836186a5f1612b2a98279255ee7af45c1063 /crawl-ref/source/misc.cc
parentad382c58bd22273fdcb13759bf35e1c89d573e97 (diff)
downloadcrawl-ref-0afe4c455bf5a0358cf7f6688b413389a5080fcc.tar.gz
crawl-ref-0afe4c455bf5a0358cf7f6688b413389a5080fcc.zip
Ziggurat portals charge gold for entry.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7610 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index d7d8fb9c1b..e70d5fa9e3 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1676,6 +1676,11 @@ void up_stairs(dungeon_feature_type force_stair,
return;
}
+ // Bail if any markers veto the move.
+ if (!dungeon_events.fire_vetoable_position_event(DETV_LEAVE_LEVEL,
+ you.pos()))
+ return;
+
// Checks are done, the character is committed to moving between levels.
leaving_level_now();
@@ -2056,6 +2061,11 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
}
}
+ // Bail if any markers veto the move.
+ if (!dungeon_events.fire_vetoable_position_event(DETV_LEAVE_LEVEL,
+ you.pos()))
+ return;
+
const level_id destination_override(_stair_destination_override());
// All checks are done, the player is on the move now.