Changeset 439

Show
Ignore:
Timestamp:
08/03/07 18:42:51 (1 year ago)
Author:
ctate
Message:

Add space between basic item desc and ego specifics if they're both displayed. Fixes output like "It can be shot with a bow.Ammunition of Wounding often has unusually high to-hit and to-dam values."

Files:

Legend:

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

    r434 r439  
    764764        else if (object_aware_p(o_ptr) || object_known_p(o_ptr)) 
    765765        { 
     766                bool did_desc = FALSE; 
     767 
    766768                if (k_info[o_ptr->k_idx].text) 
     769                { 
    767770                        p_text_out(k_text + k_info[o_ptr->k_idx].text); 
     771                        did_desc = TRUE; 
     772                } 
    768773 
    769774                /* Display an additional ego-item description */ 
    770775                if (o_ptr->name2 && object_known_p(o_ptr) && e_info[o_ptr->name2].text) 
     776                { 
     777                        if (did_desc) p_text_out("  "); 
    771778                        p_text_out(e_text + e_info[o_ptr->name2].text); 
     779                } 
    772780        } 
    773781