diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-05 22:20:15 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-05 22:20:15 +0000 |
commit | ddb06dbaf344d859f3e71760adde8ff4c4a936d1 (patch) | |
tree | cdc9f90e930ede58475041be142b02d16960b661 /crawl-ref/source/misc.cc | |
parent | a88fd9951f8e4faa48e0ea328df203c13e247fb1 (diff) | |
download | crawl-ref-ddb06dbaf344d859f3e71760adde8ff4c4a936d1.tar.gz crawl-ref-ddb06dbaf344d859f3e71760adde8ff4c4a936d1.zip |
Remove trap-door-like logic from shaft traps, since shafts are just
supposed to be holes hidden by debris.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2337 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 99d4071344..a78285ff01 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -842,17 +842,16 @@ void down_stairs( int old_level, dungeon_feature_type force_stair, bool known_trap = (grd[you.x_pos][you.y_pos] != DNGN_UNDISCOVERED_TRAP && !force_stair); - if (you.airborne() && !known_trap && !force_stair) + if (!known_trap && !force_stair) { mpr("You can't go down here!"); return; } - if (you.airborne() && you.flies() != FL_FLY && !force_stair) + if (you.flies() == FL_LEVITATE && !force_stair) { if (known_trap) - mpr("You must have controlled flight to dive through " - "a shaft."); + mpr("You can't fall through a shaft while levitating."); return; } |