diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-12-02 04:23:32 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-12-03 11:02:04 +0100 |
commit | a248abcac039dda36919e2e8882f83b04685eca1 (patch) | |
tree | cca965406e217c5af20c62380cdd700ea6d8f905 /crawl-ref/source/directn.cc | |
parent | ada52c5036588e8fe63c87b5bb98b1848fdde539 (diff) | |
download | crawl-ref-a248abcac039dda36919e2e8882f83b04685eca1.tar.gz crawl-ref-a248abcac039dda36919e2e8882f83b04685eca1.zip |
Use a scalar range for find_ray() and friends instead of a circle_def object.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index cb24fcd974..5eb811698c 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1617,7 +1617,7 @@ void direction_chooser::toggle_beam() if (show_beam) { have_beam = find_ray(you.pos(), target(), beam, - opc_solid_see, BDS_DEFAULT); + opc_solid_see, you.current_vision); } } @@ -1694,7 +1694,7 @@ void direction_chooser::handle_wizard_command(command_type key_command, case CMD_TARGET_CYCLE_BEAM: show_beam = true; have_beam = find_ray(you.pos(), target(), beam, - opc_solid_see, BDS_DEFAULT, show_beam); + opc_solid_see, you.current_vision, show_beam); need_beam_redraw = true; return; @@ -2018,7 +2018,7 @@ bool direction_chooser::do_main_loop() if (old_target != target()) { have_beam = show_beam && find_ray(you.pos(), target(), beam, - opc_solid_see, BDS_DEFAULT); + opc_solid_see, you.current_vision); need_text_redraw = true; need_beam_redraw = true; need_cursor_redraw = true; @@ -2077,7 +2077,7 @@ bool direction_chooser::choose_direction() if (show_beam) { have_beam = find_ray(you.pos(), target(), beam, - opc_solid_see, BDS_DEFAULT); + opc_solid_see, you.current_vision); need_beam_redraw = have_beam; } if (hitfunc) |