diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-17 21:51:34 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-17 21:51:34 +0000 |
commit | 9e53db8d5a46e3449df9881fc60037dced513c05 (patch) | |
tree | e0d70d19eafad5e1a44a0b2e015c61277fcbaa10 /crawl-ref/source/beam.cc | |
parent | 305618f279ee424e35c254b0d63d151f91fd3e69 (diff) | |
download | crawl-ref-9e53db8d5a46e3449df9881fc60037dced513c05.tar.gz crawl-ref-9e53db8d5a46e3449df9881fc60037dced513c05.zip |
Fix [2688044]: targeting a wall when firing a missile can leave
it stuck in the wall.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9512 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index eb51cc6112..8606225b22 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1800,7 +1800,7 @@ void bolt::hit_wall() { // Regress for explosions: blow up in an open grid (if regressing // makes any sense). Also regress when dropping items. - if (!aimed_at_spot + if (pos() != source && ((is_explosion && !in_explosion_phase) || drop_item)) { do { |