From fb2de3b69218f690d6e3fe70da95b6d895dc9209 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 20 Apr 2008 00:57:48 +0000 Subject: Add a missing break statement to fix unID'd scroll of recharging enchanting armour instead... oops! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4395 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 902565deed..fce561faac 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4004,20 +4004,25 @@ static bool scroll_modify_item(const scroll_type scroll) case SCR_RECHARGING: if (item_is_rechargable(item)) { - // might still fail on highly enchanted weapons of electrocution + // Might still fail on highly enchanted weapons of electrocution. + // (If so, already prints the "Nothing happens" message.) if (recharge_wand(item_slot)) return (true); return (false); } + break; case SCR_ENCHANT_ARMOUR: if (is_enchantable_armour(item, true)) { - // might still fail because of already high enchantment + // Might still fail because of already high enchantment. + // (If so, already prints the "Nothing happens" message.) if (_handle_enchant_armour(item_slot)) return (true); return (false); } + break; default: + mpr("Buggy scroll can't modify item!"); break; } -- cgit v1.2.3-54-g00ecf