diff options
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index ae23bd7c8e..917e7e313a 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -251,7 +251,8 @@ static void draw_ray_glyph(const coord_def &pos, int colour, //--------------------------------------------------------------- void direction(dist& moves, targeting_type restricts, targ_mode_type mode, bool just_looking, - const char *prompt, targeting_behaviour *beh) + bool needs_path, const char *prompt, + targeting_behaviour *beh) { static targeting_behaviour stock_behaviour; if (!beh) @@ -271,7 +272,7 @@ void direction(dist& moves, targeting_type restricts, cursor_control con(!Options.use_fake_cursor); int dir = 0; - bool show_beam = Options.show_beam; + bool show_beam = Options.show_beam && !just_looking && needs_path; ray_def ray; FixedVector < char, 2 > objfind_pos; |