Changeset 454

Show
Ignore:
Timestamp:
08/06/07 13:22:41 (1 year ago)
Author:
takkaria
Message:

Don't allow uninscribing of objects which are already without inscription.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd3.c

    r407 r454  
    593593 
    594594 
     595/* 
     596 * Return whether the item has an inscription. 
     597 */ 
     598static bool item_has_inscription(const object_type *o_ptr) 
     599{ 
     600        return (o_ptr->note ? TRUE : FALSE); 
     601} 
     602 
    595603 
    596604/* 
     
    610618        q = "Un-inscribe which item? "; 
    611619        s = "You have nothing to un-inscribe."; 
     620        item_tester_hook = item_has_inscription; 
    612621        if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return; 
    613622