diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-15 21:47:52 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-15 21:47:52 +0000 |
commit | 67eb7c2e6fd0b7504c76d7019611beae59c20ff4 (patch) | |
tree | 574c584ab8c6a937cdc8a7f953725bf4d06e5ba7 /crawl-ref/source/direct.cc | |
parent | be3a188d2d063ce38289db5f96c66f218167d73a (diff) | |
download | crawl-ref-67eb7c2e6fd0b7504c76d7019611beae59c20ff4.tar.gz crawl-ref-67eb7c2e6fd0b7504c76d7019611beae59c20ff4.zip |
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
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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; |