summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorjohnny shelley <jwshelley@shell-21002.(none)>2009-11-18 16:15:36 +0000
committerAdam Borowski <kilobyte@angband.pl>2009-11-20 00:53:23 +0100
commita6f20f10d194207d60f77a22a20f1b4a81a822d4 (patch)
tree29bcfce3d3e022f84ff7ee2a6f03c29888671134 /crawl-ref/source/item_use.cc
parentbcc9f0a918fab4fdb28ba92c05612dfa0e396704 (diff)
downloadcrawl-ref-a6f20f10d194207d60f77a22a20f1b4a81a822d4.tar.gz
crawl-ref-a6f20f10d194207d60f77a22a20f1b4a81a822d4.zip
call affect_endpoint in order to generate explosions when using portal projectile
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index abe8b20aaf..5aab9f10b1 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3111,6 +3111,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
// Violating encapsulation somewhat...oh well.
pbolt.use_target_as_pos = true;
pbolt.affect_cell();
+ pbolt.affect_endpoint();
if (acc_bonus != DEBUG_COOKIE)
pbolt.drop_object();
}