Changeset 880

Show
Ignore:
Timestamp:
05/04/08 19:38:19 (4 months ago)
Author:
ajps
Message:

Remove {tried} pseudo-inscriptions from showing in store. Fixes #456

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/obj-desc.c

    r793 r880  
    664664} 
    665665 
    666 static size_t obj_desc_inscrip(const object_type *o_ptr, char *buf, size_t max, size_t end
     666static size_t obj_desc_inscrip(const object_type *o_ptr, char *buf, size_t max, size_t end, bool in_store
    667667{ 
    668668        const char *u = NULL, *v = NULL; 
     
    679679        else if ((o_ptr->ident & IDENT_EMPTY) && !object_known_p(o_ptr)) 
    680680                v = "empty"; 
    681         else if (!object_aware_p(o_ptr) && object_tried_p(o_ptr)) 
     681        else if (!in_store && !object_aware_p(o_ptr) && object_tried_p(o_ptr)) 
    682682                v = "tried"; 
    683683 
     
    779779        } 
    780780 
    781         end = obj_desc_inscrip(o_ptr, buf, max, end); 
     781        end = obj_desc_inscrip(o_ptr, buf, max, end, (mode == ODESC_STORE)); 
    782782 
    783783