diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 11:48:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 11:48:03 +0000 |
commit | 5be9c59587164c09a41da05a8de9e0d3588412ab (patch) | |
tree | e754dccbffe678ce3067306ca3dadc8668038eea /crawl-ref/source/spl-util.h | |
parent | 09aad943f1aae98c6f0fd03c94583ad2afc65e09 (diff) | |
download | crawl-ref-5be9c59587164c09a41da05a8de9e0d3588412ab.tar.gz crawl-ref-5be9c59587164c09a41da05a8de9e0d3588412ab.zip |
Take range information from the beam if applicable in spell_direction().
Implements [2553289].
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8889 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r-- | crawl-ref/source/spl-util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h index 0342fcc076..dd0e78319f 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -111,7 +111,8 @@ void apply_area_cloud(cloud_func func, const coord_def& where, bool spell_direction( dist &spelld, bolt &pbolt, targeting_type restrict = DIR_NONE, targ_mode_type mode = TARG_ENEMY, - int range = LOS_RADIUS, + // pbolt.range if applicable, otherwise LOS_RADIUS + int range = 0, bool needs_path = true, bool may_target_monster = true, bool may_target_self = false, const char *prompt = NULL, bool cancel_at_self = false ); |