From decb6b25c768d8e4ea0a2af37e5b4c699d86b036 Mon Sep 17 00:00:00 2001 From: Haran Pilpel Date: Sat, 16 Jan 2010 09:16:21 +0200 Subject: Fix 440: beam path display improperly initialized in Tiles. --- crawl-ref/source/directn.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 0998c68a8c..e3430129a3 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1192,9 +1192,15 @@ void direction(dist& moves, const targetting_type restricts, if (show_beam) { have_beam = find_ray(you.pos(), moves.target, ray); - beam_target = moves.target; + beam_target = objfind_pos = monsfind_pos = moves.target; if (have_beam) + { _draw_beam(ray, beam_target, range); +#ifdef USE_TILE + // In tiles, we need to refresh the window to get the beam drawn. + viewwindow(false, true); +#endif + } } bool target_unshifted = Options.target_unshifted_dirs; -- cgit v1.2.3-54-g00ecf