diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-27 23:13:28 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-27 23:13:28 -0700 |
commit | f87c007a08e93a46c9fe349809db53880fe5ba87 (patch) | |
tree | f8a1f1ea9a047939b8c9309c1544d53a13ea7dc5 /crawl-ref/source/misc.cc | |
parent | ac7ffddb0e317f7ef15a02a210f0e7eade5f35dd (diff) | |
download | crawl-ref-f87c007a08e93a46c9fe349809db53880fe5ba87.tar.gz crawl-ref-f87c007a08e93a46c9fe349809db53880fe5ba87.zip |
Move move_stairs() from misc.cc to melee_attack.cc
The only place it was used.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 77344d80a6..40e2613fe7 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1300,25 +1300,3 @@ string counted_monster_list::describe(description_level_type desc) } return out; } - -bool move_stairs(coord_def orig, coord_def dest) -{ - const dungeon_feature_type stair_feat = grd(orig); - - if (feat_stair_direction(stair_feat) == CMD_NO_CMD) - return false; - - // The player can't use shops to escape, so don't bother. - if (stair_feat == DNGN_ENTER_SHOP) - return false; - - // Don't move around notable terrain the player is aware of if it's - // out of sight. - if (is_notable_terrain(stair_feat) - && env.map_knowledge(orig).known() && !you.see_cell(orig)) - { - return false; - } - - return slide_feature_over(orig, dest); -} |