summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-23 11:05:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-23 11:05:37 +0000
commit2aa047a8a3a6ce4ff16d8d309d91eb36b05b6048 (patch)
treee9affa239169895594e165c565c019af6796645b /crawl-ref/source/spells3.cc
parentd40b5c49a223cb2bdad1e9a0df10631140b700a3 (diff)
downloadcrawl-ref-2aa047a8a3a6ce4ff16d8d309d91eb36b05b6048.tar.gz
crawl-ref-2aa047a8a3a6ce4ff16d8d309d91eb36b05b6048.zip
* Prompt before moving while confused and next to lava/deep water.
* Change Portal Projectile range to LOS. * Fix crash with Summon Horrible Things if there's not enough space. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10380 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index cd5913a85e..143c9555a0 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -603,11 +603,11 @@ bool cast_summon_horrible_things(int pow, god_type god)
// No more than 8 summons.
how_many_small = std::min(8, how_many_small);
- how_many_big = std::min(8, how_many_big);
+ how_many_big = std::min(8, how_many_big);
int count = 0;
- while (how_many_big > 0)
+ while (how_many_big-- > 0)
{
const int monster =
create_monster(
@@ -619,13 +619,11 @@ bool cast_summon_horrible_things(int pow, god_type god)
if (monster != -1)
{
count++;
- how_many_big--;
-
player_angers_monster(&menv[monster]);
}
}
- while (how_many_small > 0)
+ while (how_many_small-- > 0)
{
const int monster =
create_monster(
@@ -637,8 +635,6 @@ bool cast_summon_horrible_things(int pow, god_type god)
if (monster != -1)
{
count++;
- how_many_small--;
-
player_angers_monster(&menv[monster]);
}
}