summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-10-22 17:59:56 +1000
committerAdam Borowski <kilobyte@angband.pl>2009-10-22 09:59:34 +0200
commitc866e0c71f5d4c1ee2c179f0c2de640504127696 (patch)
treea2401e2b151d913b3b98d7bc487dd4a2f8177d2b /crawl-ref/source/spells3.cc
parent22d680f23c527a3287d7c3a40cad57b705e8b08c (diff)
downloadcrawl-ref-c866e0c71f5d4c1ee2c179f0c2de640504127696.tar.gz
crawl-ref-c866e0c71f5d4c1ee2c179f0c2de640504127696.zip
Updated levdes.vim for KPROP. NO_RTELE_INTO property.
NO_RTELE_INTO restricts random teleport from choosing a specific grid square marked with this. This does not stop controlled teleport onto specific grid squares; controlled teleport is completely unrestricted. Updated documentation for new property. Do not apply to branch ends/Orb chamber yet, please!
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index e9b0e6cc40..a7c00c9481 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1576,7 +1576,8 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area)
|| grd(newpos) != DNGN_DEEP_WATER)
|| monster_at(newpos)
|| env.cgrid(newpos) != EMPTY_CLOUD
- || need_distance_check && (newpos - centre).abs() < 34*34);
+ || need_distance_check && (newpos - centre).abs() < 34*34
+ || testbits(env.map(newpos).property, FPROP_NO_RTELE_INTO));
if ( newpos == you.pos() )
mpr("Your surroundings flicker for a moment.");