summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 12:36:43 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 12:36:43 +0000
commit552a18061460342af014e69c7cee26bb5bf358ef (patch)
tree6a715c1f8acde3dda56bf5c2e8cd7f4a3aee6c2c /crawl-ref/source/item_use.cc
parentebb6673550564e06b257690b5fa0100af8786838 (diff)
downloadcrawl-ref-552a18061460342af014e69c7cee26bb5bf358ef.tar.gz
crawl-ref-552a18061460342af014e69c7cee26bb5bf358ef.zip
* Add support for packaging save files with tar. (Patch by Trent W. Buck.)
* Fix random blink placing the player in dangerous clouds. * Fix message when trying to place Conjure Flame in a wax wall. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10397 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 0edf5d15a0..6f9739d703 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1793,18 +1793,21 @@ static bool _dispersal_hit_victim(bolt& beam, actor* victim, int dmg,
int tries = 0;
do
{
- if (!random_near_space(victim->pos(), pos, false, true, no_sanct))
+ if (!random_near_space(victim->pos(), pos, false, true, false,
+ no_sanct))
+ {
return (false);
- } while (!victim->is_habitable(pos) && tries++ < 100);
+ }
+ }
+ while (!victim->is_habitable(pos) && tries++ < 100);
if (!victim->is_habitable(pos))
return (false);
tries = 0;
do
- {
- random_near_space(victim->pos(), pos2, false, true, no_sanct);
- } while (!victim->is_habitable(pos2) && tries++ < 100);
+ random_near_space(victim->pos(), pos2, false, true, false, no_sanct);
+ while (!victim->is_habitable(pos2) && tries++ < 100);
if (!victim->is_habitable(pos2))
return (false);