diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-02-21 03:05:21 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-02-21 15:06:20 +0100 |
commit | 8aafbfd76005abd9012365f1fac17034af025006 (patch) | |
tree | 11f8eb7c83670e031414096135425a66c18c12fe /crawl-ref/source/tilereg.cc | |
parent | bccb13882480d7f65b494e7f81b5ea134f228300 (diff) | |
download | crawl-ref-8aafbfd76005abd9012365f1fac17034af025006.tar.gz crawl-ref-8aafbfd76005abd9012365f1fac17034af025006.zip |
Really fix fire/spell targeting via mouseclick on monster.
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r-- | crawl-ref/source/tilereg.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 55f0a88ccc..d9e4f8eb5d 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -1408,7 +1408,7 @@ static void _add_targeting_commands(const coord_def& pos) { // Force targeting cursor back onto center to start off on a clean // slate. - macro_buf_add_cmd(CMD_TARGET_CENTER); + macro_buf_add_cmd(CMD_TARGET_FIND_YOU); const coord_def delta = pos - you.pos(); @@ -1430,7 +1430,7 @@ static void _add_targeting_commands(const coord_def& pos) for (int i = 0; i < std::abs(delta.y); i++) macro_buf_add_cmd(cmd); - macro_buf_add_cmd(CMD_TARGET_MOUSE_SELECT); + macro_buf_add_cmd(CMD_TARGET_MOUSE_MOVE); } static const bool _is_appropriate_spell(spell_type spell, |