summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-07 18:07:55 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-07 18:07:55 +0000
commit4257d4e4ef09a35e6b31bdfb91b6146452d1bcef (patch)
treea356eaf24e39c63e2111c6ce71af0c0680d0dca7 /crawl-ref/source/items.cc
parent0d60a36be89dc21a90fa687486a1c45030c29358 (diff)
downloadcrawl-ref-4257d4e4ef09a35e6b31bdfb91b6146452d1bcef.tar.gz
crawl-ref-4257d4e4ef09a35e6b31bdfb91b6146452d1bcef.zip
* Fix wizmode targetting commands not flushing messages correctly.
* Fix Sif Muna's randart book gifts never containing the Vehumet/Kiku special spells, as was originally intended. (Books found elsewhere will never contain the spells.) * In the highly unlikely case the player already has seen all spells don't crash when attempting to gift a book. Instead, simply make the acquirement fail, but be quiet about "the demon of the infinite void" if it was instigated by Sif Muna. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9368 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 47cccee2a7..50fca9f162 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1637,9 +1637,10 @@ int move_item_to_player( int obj, int quant_got, bool quiet,
// If moving an item directly from a monster to the player without the
// item having been on the grid, then it really isn't a position event.
if (in_bounds(p))
+ {
dungeon_events.fire_position_event(
dgn_event(DET_ITEM_PICKUP, p, 0, obj, -1), p);
-
+ }
item_def &item = you.inv[freeslot];
// Copy item.
item = mitm[obj];