summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 23:40:34 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 23:40:34 +0000
commit6f1108a5230a4a8efac105f97fe6d63eda40828c (patch)
treefd3e0f3662ec46303dcec89e1159675f53428fdf /crawl-ref/source/spells2.cc
parent6267771c634384c7c706b5e48f8bdb3dc873bdfe (diff)
downloadcrawl-ref-6f1108a5230a4a8efac105f97fe6d63eda40828c.tar.gz
crawl-ref-6f1108a5230a4a8efac105f97fe6d63eda40828c.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5562 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 8259bca081..ad990e8f78 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1823,8 +1823,7 @@ bool cast_call_imp(int pow, bool god_gift)
(mon == MONS_SHADOW_IMP) ? "A shadowy apparition takes form in the air."
: "A beastly little devil appears in a puff of flame.");
}
-
- if (!success)
+ else
canned_msg(MSG_NOTHING_HAPPENS);
return (success);
@@ -1884,8 +1883,7 @@ bool cast_call_canine_familiar(int pow, bool god_gift)
mprf("A canine appears!%s",
friendly ? "" : " It doesn't look very happy.");
}
-
- if (!success)
+ else
canned_msg(MSG_NOTHING_HAPPENS);
return (success);
@@ -1965,8 +1963,7 @@ bool cast_summon_ice_beast(int pow, bool god_gift)
mpr("A chill wind blows around you.");
}
-
- if (!success)
+ else
canned_msg(MSG_NOTHING_HAPPENS);
return (success);
@@ -1997,8 +1994,7 @@ bool cast_summon_ugly_thing(int pow, bool god_gift)
: "An ugly thing appears.%s",
friendly ? "" : " It doesn't look very happy.");
}
-
- if (!success)
+ else
canned_msg(MSG_NOTHING_HAPPENS);
return (success);