diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-12-01 12:09:07 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-12-01 12:12:34 +0100 |
commit | bce5f7020a13edbceb605979a3b73fdfe590a0cf (patch) | |
tree | f35f77649b8fc49939c67608d415dbd9b8c0efcf /crawl-ref/source/spl-util.cc | |
parent | 20889107ee4ef5e7f61b1facfdf4da4bc97935b6 (diff) | |
download | crawl-ref-bce5f7020a13edbceb605979a3b73fdfe590a0cf.tar.gz crawl-ref-bce5f7020a13edbceb605979a3b73fdfe590a0cf.zip |
Make passwall use standard targetting system.
This means it's properly abortable now.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r-- | crawl-ref/source/spl-util.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index a374f18771..2f32ea67e1 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -652,12 +652,7 @@ int apply_one_neighbouring_square(cell_func cf, int power, actor *agent) return (-1); } - int rv = cf(you.pos() + bmove.delta, power, 1, agent); - - if (rv == 0) - canned_msg(MSG_NOTHING_HAPPENS); - - return (rv); + return cf(you.pos() + bmove.delta, power, 1, agent); } int apply_area_within_radius(cell_func cf, const coord_def& where, |