summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-24 23:11:28 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-24 23:11:28 +0000
commitfcf7c5191381b4cf90787d62ba8e448dd4a23a17 (patch)
treefee3cb255487c116405d71cd06bd1cd01a3982a7 /crawl-ref/source/invent.cc
parent9304ae6cc3684377e50e6fcbc3d13e80fa092b6a (diff)
downloadcrawl-ref-fcf7c5191381b4cf90787d62ba8e448dd4a23a17.tar.gz
crawl-ref-fcf7c5191381b4cf90787d62ba8e448dd4a23a17.zip
Along the lines of 1706790: the identify inventory list now only contains
items which aren't fully IDed by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1360 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index f2b7174405..b588b54edd 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -459,6 +459,8 @@ static bool item_class_selected(const item_def &i, int selector)
switch (selector)
{
+ case OSEL_UNIDENT:
+ return !fully_identified(i);
case OBJ_MISSILES:
return (itype == OBJ_MISSILES || itype == OBJ_WEAPONS);
case OBJ_WEAPONS: