summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 05:27:14 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 05:27:14 +0000
commit744d90abe6ca022f4157b110c7bc814d5e4a937b (patch)
tree2887e44daa772c3cb00ad2681c840c0cb10a8912 /crawl-ref/source/item_use.cc
parentf34f77252eb84407a4216766d4492468b3ce46bb (diff)
downloadcrawl-ref-744d90abe6ca022f4157b110c7bc814d5e4a937b.tar.gz
crawl-ref-744d90abe6ca022f4157b110c7bc814d5e4a937b.zip
Properly handle scrolls of summoning when they fail to summon anything.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7097 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 7afb1a6fe2..66eec08c36 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4429,6 +4429,11 @@ void read_scroll( int slot )
{
mpr("A horrible Thing appears!");
}
+ else
+ {
+ canned_msg(MSG_NOTHING_HAPPENS);
+ id_the_scroll = false;
+ }
break;
case SCR_FOG: