diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-25 23:15:35 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-25 23:15:35 +0000 |
commit | 47acdb698074068dd18504aae5ffe43a1bb44157 (patch) | |
tree | 1b8fa18662e74cd0a9452411ead2ec02e12cbb22 /crawl-ref/source/spl-util.h | |
parent | c17d939e0538920b20ce8640c1f9ef051b39bbde (diff) | |
download | crawl-ref-47acdb698074068dd18504aae5ffe43a1bb44157.tar.gz crawl-ref-47acdb698074068dd18504aae5ffe43a1bb44157.zip |
direction() cleanup, stage 2: look_around is gone, everything unified
into a single function (well, two.)
Since '>' is taken, '!' is now used for requesting that the beam stop
short at a specific point. However, this is currently buggy: ' ', '.'
and '!' all do the same thing for now - the beam will *always* stop right
there. Fixing this will need a bit of hacking at the zapping functions.
Don't worry, it'll get done.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@887 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 31a3bc5102..f81ca07ba5 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -82,7 +82,8 @@ int apply_area_within_radius(int (*func) (int, int, int, int), int x, int y, int pow, int radius, int ctype); char spell_direction( struct dist &spelld, struct bolt &pbolt, - int restrict = DIR_NONE, int mode = TARG_ENEMY ); + targeting_type restrict = DIR_NONE, + int mode = TARG_ENEMY ); void apply_area_cloud(int (*func) (int, int, int, int), int x, int y, int pow, int number, int ctype); |