summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-25 12:55:26 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-25 12:55:26 +0000
commit3970539e0caa99ad9b68d454cc46f713ac71bc73 (patch)
treedb9d7f8943f3e8adf036a7fec4f47d53d06521ec /crawl-ref/source/spells1.cc
parent6d3a9722a2da87fd55334a2484b2064e118f69f8 (diff)
downloadcrawl-ref-3970539e0caa99ad9b68d454cc46f713ac71bc73.tar.gz
crawl-ref-3970539e0caa99ad9b68d454cc46f713ac71bc73.zip
Improve targetting via monster list, add a new option to define the
toggle's initial setting, and update/correct the documentation a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6135 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 98607bb14c..3b0abac19b 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -140,7 +140,7 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink)
// Allow wizard blink to send player into walls, in case the
// user wants to alter that grid to something else.
- if (grid_is_solid(grd[beam.tx][beam.ty]) && wizard_blink)
+ if (wizard_blink && grid_is_solid(grd[beam.tx][beam.ty]))
grd[beam.tx][beam.ty] = DNGN_FLOOR;
if (grid_is_solid(grd[beam.tx][beam.ty])