summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-19 00:06:21 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-19 00:06:21 -0800
commit552dc77be4d12c063bf314b5699fc2abfdadb198 (patch)
treea793d103d59ad4e3d9586558ea0635c9e0006cf5 /crawl-ref
parent93d95397af61d738958907a83e8851702446e05d (diff)
downloadcrawl-ref-552dc77be4d12c063bf314b5699fc2abfdadb198.tar.gz
crawl-ref-552dc77be4d12c063bf314b5699fc2abfdadb198.zip
No Ctrl-L-Click for Evaporate
Since Evaporate requires choosing a potion form inventory, the current Ctrl-L-Click tiles interface won't handle it. Also remove some obsolete comments.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/tilereg.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 30767d268a..59fd216c56 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -1185,6 +1185,10 @@ static const bool _is_appropriate_spell(spell_type spell,
{
ASSERT(is_valid_spell(spell));
+ // TODO: Implement tiles Evaporate interface.
+ if (spell == SPELL_EVAPORATE)
+ return (false);
+
const unsigned int flags = get_spell_flags(spell);
const bool targeted = flags & SPFLAG_TARGETTING_MASK;
@@ -1315,11 +1319,7 @@ static bool _evoke_item_on_target(actor* target)
item_def* item = _get_evokable_item(target);
if (item == NULL)
- {
- // We cancled out of selecting a wand, so don't take a step
- // closer to the monster.
- return (true);
- }
+ return (false);
macro_buf_add_cmd(CMD_EVOKE);
macro_buf_add(index_to_letter(item->link)); // Inventory letter.
@@ -1372,11 +1372,7 @@ static bool _cast_spell_on_target(actor* target)
_spell_target = NULL;
if (letter == 0)
- {
- // We cancled out of selecting a spell, so don't take a step
- // closer to the monster.
- return (true);
- }
+ return (false);
const spell_type spell = get_spell_by_letter(letter);
@@ -1387,14 +1383,12 @@ static bool _cast_spell_on_target(actor* target)
{
mprf("%s is out of range for that spell.",
target->name(DESC_CAP_THE).c_str());
- // Don't step closer to the monster.
return (true);
}
if (spell_mana(spell) > you.magic_points)
{
mpr( "You don't have enough mana to cast that spell.");
- // Don't step closer to the monster.
return (true);
}