Changeset 1423

Show
Ignore:
Timestamp:
06/01/09 15:22:09 (15 months ago)
Author:
ajps
Message:

Bugfix for r1420 - items from the floor were not correctly included in those the player could use.

Files:
1 modified

Legend:

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

    r1420 r1423  
    37133713                for (i = 0; i < floor_num && item_list_num < item_list_max; i++) 
    37143714                { 
    3715                         if (get_item_okay(i)) 
    3716                                 item_list[item_list_num++] = i; 
     3715                        if (get_item_okay(-floor_list[i])) 
     3716                                item_list[item_list_num++] = -floor_list[i]; 
    37173717                } 
    37183718        }