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/view.h | |
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/view.h')
-rw-r--r-- | crawl-ref/source/view.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index 135314223f..357cfbf597 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -232,7 +232,8 @@ bool find_ray( int sourcex, int sourcey, int targetx, int targety, int num_feats_between(int sourcex, int sourcey, int targetx, int targety, dungeon_feature_type min_feat, dungeon_feature_type max_feat, - bool exclude_endpoints = true); + bool exclude_endpoints = true, + bool just_check = false); dungeon_char_type dchar_by_name(const std::string &name); |