summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 16:40:11 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 16:40:11 +0000
commit5a92fff347e045f3504178415a77d5ed13b679d3 (patch)
tree72939556797dc363e9a320314f9962039cb43009 /crawl-ref/source/spells2.cc
parentcadc3464fb071b71d222aa8d1d1fda6ea8df8160 (diff)
downloadcrawl-ref-5a92fff347e045f3504178415a77d5ed13b679d3.tar.gz
crawl-ref-5a92fff347e045f3504178415a77d5ed13b679d3.zip
Fix [2001885]: "Nothing appears to happen." was being printed when
"Summon Elemental" succeeded, rather than when it failed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6115 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 865bbd514b..e37f0c4f10 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1534,7 +1534,7 @@ bool cast_summon_elemental(int pow, god_type god,
friendly ? BEH_FRIENDLY : BEH_HOSTILE,
dur, coord_def(targ_x, targ_y),
friendly ? you.pet_target : MHITYOU,
- 0, god)) != -1)
+ 0, god)) == -1)
{
canned_msg(MSG_NOTHING_HAPPENS);
return (false);