diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-09 16:05:08 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-09 16:05:08 +0000 |
commit | 118d97e6f6bd8ad53f6c80569aaeb4521c369f0b (patch) | |
tree | 3921e18fd478a2701937b4934a73559244db1701 /crawl-ref/source/item_use.cc | |
parent | 47fdcd399772f8805e93b76885499b11da454443 (diff) | |
download | crawl-ref-118d97e6f6bd8ad53f6c80569aaeb4521c369f0b.tar.gz crawl-ref-118d97e6f6bd8ad53f6c80569aaeb4521c369f0b.zip |
Returning weapon beam path updates for trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2396 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index d3fa865f49..aeca7119d9 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2255,8 +2255,15 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, } if ( returning ) + { + // Fire beam in reverse + pbolt.setup_retrace(); + viewwindow(true, false); + fire_beam(pbolt, NULL); + msg::stream << item.name(DESC_CAP_THE) << " returns to your pack!" << std::endl; + } else dec_inv_item_quantity( throw_2, 1 ); |