summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-11 04:33:26 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-11 04:33:26 +0000
commit8af56c9f2d1a3e2ef9dbeae0b47263b47f00be42 (patch)
tree801af74a8481a111a8d635b0d8d6eece734a4701
parent2c2d8292ab0a6f2f7abfcd6bf7124368668a816f (diff)
downloadcrawl-ref-8af56c9f2d1a3e2ef9dbeae0b47263b47f00be42.tar.gz
crawl-ref-8af56c9f2d1a3e2ef9dbeae0b47263b47f00be42.zip
Apply trunk r6490 to 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6491 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 9eea4c276c..b71d76e7e4 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2350,6 +2350,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
if (wepClass == OBJ_MISSILES)
{
+ // Identify ammo type.
+ set_ident_flags(you.inv[throw_2], ISFLAG_KNOW_TYPE);
+
switch (wepType)
{
case MI_LARGE_ROCK: