summaryrefslogtreecommitdiff
path: root/src/spells2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <ba@cwconsult.dk>2018-03-25 20:07:30 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
commit8d7701a13d0a7e665b52b8849f3c2a0cd5fca8ec (patch)
treee7baf14be575fec977e48a59ed0789fb3a6adc82 /src/spells2.cc
parentca70af30e6068f79e4c76a1a09af986a1b1e53a4 (diff)
Remove IDENT_MENTAL
This essentially means Identify is the same as *Identify*, but it doesn't matter because everything is already being *Identified* on walk-over at this point.
Diffstat (limited to 'src/spells2.cc')
-rw-r--r--src/spells2.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/spells2.cc b/src/spells2.cc
index 62649668..fa01c522 100644
--- a/src/spells2.cc
+++ b/src/spells2.cc
@@ -943,23 +943,6 @@ void report_magics()
*/
bool_ lose_all_info()
{
- int i;
-
- /* Forget info about objects */
- for (i = 0; i < INVEN_TOTAL; i++)
- {
- object_type *o_ptr = &p_ptr->inventory[i];
-
- /* Skip non-objects */
- if (!o_ptr->k_ptr) continue;
-
- /* Allow "protection" by the MENTAL flag */
- if (o_ptr->ident & (IDENT_MENTAL)) continue;
-
- /* Hack -- Clear the "known" flag */
- o_ptr->ident &= ~(IDENT_KNOWN);
- }
-
/* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
@@ -2210,7 +2193,7 @@ bool_ ident_all()
*/
static bool item_tester_hook_no_mental(object_type const *o_ptr)
{
- return ((o_ptr->ident & (IDENT_MENTAL)) ? false : true);
+ return ((o_ptr->ident & IDENT_KNOWN) ? false : true);
}
/*