Changeset 1408 for trunk

Show
Ignore:
Timestamp:
05/23/09 14:54:30 (16 months ago)
Author:
magnate
Message:

Fix a compiler warning introduced by r1395, and ensure that unaware potions, scrolls and devices don't sell for their real value.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/object/obj-util.c

    r1407 r1408  
    14801480                value = object_value_real(o_ptr, qty); 
    14811481        } 
    1482         else 
     1482        else if (wearable_p(o_ptr)) 
    14831483        { 
    14841484                object_type object_type_body; 
     
    14971497                value = object_value_real(j_ptr, qty); 
    14981498        } 
     1499        else value = object_value_base(o_ptr) * qty; 
    14991500 
    15001501 
     
    15021503        return (value); 
    15031504} 
    1504  
    1505  
    1506  
    15071505 
    15081506