diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-06 21:39:43 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-06 21:39:43 -0500 |
commit | 7c9d4c11c419ace878ebff027be1bf7e9be02191 (patch) | |
tree | b2ca929456fc6e084379fbef6b1ee707de8e1c4f /crawl-ref/source/item_use.cc | |
parent | ef846648c543c81f44db094ca3a2dba95a8a0070 (diff) | |
parent | c2c25b5eaa191b0d26aee47359949093367154b9 (diff) | |
download | crawl-ref-7c9d4c11c419ace878ebff027be1bf7e9be02191.tar.gz crawl-ref-7c9d4c11c419ace878ebff027be1bf7e9be02191.zip |
Merge branch 'master' of ssh://crawl-ref.git.sourceforge.net/gitroot/crawl-ref/crawl-ref
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 052e126761..440728ac2f 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -1337,7 +1337,7 @@ static bool _fire_choose_item_and_target(int& slot, dist& target, // XXX: This stuff should be done by direction()! message_current_target(); - direction( target, DIR_NONE, TARG_ENEMY, -1, false, !teleport, true, false, + direction( target, DIR_NONE, TARG_HOSTILE, -1, false, !teleport, true, false, NULL, &beh ); if (beh.m_slot == -1) @@ -2231,7 +2231,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, else { message_current_target(); - direction( thr, DIR_NONE, TARG_ENEMY ); + direction( thr, DIR_NONE, TARG_HOSTILE); if (!thr.isValid) { @@ -3864,7 +3864,7 @@ void zap_wand(int slot) // Unless the character knows the type of the wand, the targetting // system will default to enemies. -- [ds] - targ_mode_type targ_mode = TARG_ENEMY; + targ_mode_type targ_mode = TARG_HOSTILE; beam.obvious_effect = false; @@ -3947,7 +3947,7 @@ void zap_wand(int slot) break; default: - targ_mode = TARG_ENEMY; + targ_mode = TARG_HOSTILE; break; } } |