summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:44:15 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:44:15 +0000
commit49401e18692e235ddd101c51073d93d96a33954e (patch)
treecb0b7ebf262dbef83021c6e0497407d47993373a /crawl-ref/source/misc.cc
parente37ab8471fcc8761a0d4a4954918ec4c679ed1bb (diff)
downloadcrawl-ref-49401e18692e235ddd101c51073d93d96a33954e.tar.gz
crawl-ref-49401e18692e235ddd101c51073d93d96a33954e.zip
Added allow_self_target option, with possible values yes, no, prompt.
Added brief documentation (could be improved.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6339 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index a4865d6ca8..c7ecf4b35f 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1731,7 +1731,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
int i;
const level_area_type old_level_type = you.level_type;
const dungeon_feature_type stair_find =
- force_stair? force_stair : grd[you.x_pos][you.y_pos];
+ force_stair? force_stair : grd(you.pos());
branch_type old_where = you.where_are_you;
@@ -1774,8 +1774,8 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
if (shaft)
{
- bool known_trap = (grd[you.x_pos][you.y_pos] != DNGN_UNDISCOVERED_TRAP
- && !force_stair);
+ const bool known_trap = (grd(you.pos()) != DNGN_UNDISCOVERED_TRAP
+ && !force_stair);
if (!known_trap && !force_stair)
{