From 67eb7c2e6fd0b7504c76d7019611beae59c20ff4 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 15 Sep 2007 21:47:52 +0000 Subject: Fixed warning inscriptions for 'r' and 'P'. Added a message when trying to look at the beam path of a spell that doesn't need one. (AFAIK, it's only spells that have this behaviour. Should this not be the case, or should this ever change, the message will have to be adapted.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2093 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/direct.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/direct.cc') diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index 917e7e313a..3e74133ff0 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -446,6 +446,12 @@ void direction(dist& moves, targeting_type restricts, } else { + if (!needs_path) + { + mprf(MSGCH_EXAMINE_FILTER, "This spell doesn't need a beam path."); + break; + } + show_beam = find_ray(you.x_pos, you.y_pos, moves.tx, moves.ty, true, ray, 0, true); need_beam_redraw = show_beam; -- cgit v1.2.3-54-g00ecf