special item: use item_btn_use instead of item_btn_drop
This commit is contained in:
@@ -1373,16 +1373,18 @@ bool handle_action(const sf::Event& event) {
|
||||
handle_equip_item(item_hit, need_redraw);
|
||||
break;
|
||||
case ITEMBTN_USE:
|
||||
handle_use_item(item_hit, did_something, need_redraw);
|
||||
if(stat_window == ITEM_WIN_SPECIAL) {
|
||||
use_spec_item(spec_item_array[item_hit]);
|
||||
need_redraw = true;
|
||||
}
|
||||
else
|
||||
handle_use_item(item_hit, did_something, need_redraw);
|
||||
break;
|
||||
case ITEMBTN_GIVE:
|
||||
handle_give_item(item_hit, did_something, need_redraw);
|
||||
break;
|
||||
case ITEMBTN_DROP:
|
||||
if(stat_window == ITEM_WIN_SPECIAL) {
|
||||
use_spec_item(spec_item_array[item_hit]);
|
||||
need_redraw = true;
|
||||
} else handle_drop_item(item_hit, need_redraw);
|
||||
handle_drop_item(item_hit, need_redraw);
|
||||
break;
|
||||
case ITEMBTN_INFO:
|
||||
if(stat_window == ITEM_WIN_SPECIAL)
|
||||
|
@@ -263,7 +263,7 @@ void put_item_screen(eItemWinMode screen_num) {
|
||||
place_item_button(3,i,ITEMBTN_INFO);
|
||||
if((univ.scenario.special_items[spec_item_array[i_num]].flags % 10 == 1)
|
||||
&& (!(is_combat())))
|
||||
place_item_button(0,i,ITEMBTN_DROP); // TODO: Shouldn't this be ITEMBTN_USE?
|
||||
place_item_button(0,i,ITEMBTN_USE);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user