From 5be9c59587164c09a41da05a8de9e0d3588412ab Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 4 Feb 2009 11:48:03 +0000 Subject: 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 --- crawl-ref/source/spl-util.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/spl-util.cc') diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index b030fe8fca..9886c334fa 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -742,6 +742,9 @@ bool spell_direction( dist &spelld, bolt &pbolt, if (restrict != DIR_DIR) message_current_target(); + if (range < 1) + range = (pbolt.range < 1) ? LOS_RADIUS : pbolt.range; + direction( spelld, restrict, mode, range, false, needs_path, may_target_monster, may_target_self, prompt, NULL, cancel_at_self ); -- cgit v1.2.3-54-g00ecf