diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 20:15:24 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 20:15:24 +0000 |
commit | 66c149dbd38eca4599dd015b9271d2e1bcf46472 (patch) | |
tree | 160ae3e19f11630e8d0333b5b43098ef5a72773b /crawl-ref/source/travel.cc | |
parent | 70ce5c5c0ce725bdb808bc5d5e7b216a7707e911 (diff) | |
download | crawl-ref-66c149dbd38eca4599dd015b9271d2e1bcf46472.tar.gz crawl-ref-66c149dbd38eca4599dd015b9271d2e1bcf46472.zip |
Modify num_feats_between to return early if a feature has been
encountered and we're only interested in whether the path is clear or
not. Also, more whitespace/comment changes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5298 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index c4bfe6686b..50ad0e67a7 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -1025,7 +1025,7 @@ command_type travel() if (you.running.is_explore()) { - // Exploring + // Exploring. if (grd[you.x_pos][you.y_pos] == DNGN_ENTER_SHOP && you.running == RMODE_EXPLORE_GREEDY) { @@ -1058,8 +1058,8 @@ command_type travel() if (you.running < 0) { - // Remember what run-mode we were in so that we can resume explore/ - // interlevel travel correctly. + // Remember what run-mode we were in so that we can resume + // explore/interlevel travel correctly. int runmode = you.running; // Get the next step to make. If the travel command can't find a route, |