summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-17 18:12:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-17 18:12:04 +0000
commit0d18651f393114981c90aa80d4369c0641eeba7a (patch)
treea3d4b58033896b23fddfac5dcef3c5afcbc65bc4 /crawl-ref/source
parent10ea192d5b7c51a78a0cdd862d4f447ce5a36358 (diff)
downloadcrawl-ref-0d18651f393114981c90aa80d4369c0641eeba7a.tar.gz
crawl-ref-0d18651f393114981c90aa80d4369c0641eeba7a.zip
Make "Conjure Ball Lightning" work again by fixing inverted logic, and,
hence, [2172750]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7271 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/monstuff.h6
-rw-r--r--crawl-ref/source/spells2.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/monstuff.h b/crawl-ref/source/monstuff.h
index f1e2349bbc..ebefa0c2fa 100644
--- a/crawl-ref/source/monstuff.h
+++ b/crawl-ref/source/monstuff.h
@@ -123,9 +123,9 @@ bool monster_blink(monsters *monster);
* defaults are set up for player blink; monster blink should call with
* false, false
* *********************************************************************** */
-bool random_near_space( const coord_def& origin, coord_def& target,
- bool allow_adjacent = false, bool restrict_LOS = true,
- bool forbid_sanctuary = false);
+bool random_near_space(const coord_def& origin, coord_def& target,
+ bool allow_adjacent = false, bool restrict_LOS = true,
+ bool forbid_sanctuary = false);
/* ***********************************************************************
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 589315ca3f..66896fe9df 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1748,7 +1748,7 @@ bool cast_conjure_ball_lightning(int pow, god_type god)
bool found = false;
for (int j = 0; j < 10; ++j)
{
- if (!random_near_space(you.pos(), target, true, true)
+ if (random_near_space(you.pos(), target, true, true)
&& distance(you.pos(), target) <= 5)
{
found = true;