From 47acdb698074068dd18504aae5ffe43a1bb44157 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 25 Jan 2007 23:15:35 +0000 Subject: 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 --- crawl-ref/source/spl-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-util.h') 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); -- cgit v1.2.3-54-g00ecf