Minor code cleanup
This commit is contained in:
@@ -320,13 +320,13 @@ void put_item_screen(eItemWinMode screen_num) {
|
|||||||
// make go faster, and I got lazy.
|
// make go faster, and I got lazy.
|
||||||
if((stat_screen_mode == MODE_SHOP) &&
|
if((stat_screen_mode == MODE_SHOP) &&
|
||||||
((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use
|
((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use
|
||||||
place_item_graphic(i,univ.party[pc].items[i_num].graphic_num);
|
place_item_graphic(i,item.graphic_num);
|
||||||
if(item.can_use()) // place use if can
|
if(item.can_use()) // place use if can
|
||||||
place_item_button(ITEMBTN_NORM,i);
|
place_item_button(ITEMBTN_NORM,i);
|
||||||
else place_item_button(ITEMBTN_ALL,i);
|
else place_item_button(ITEMBTN_ALL,i);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
place_item_graphic(i,univ.party[pc].items[i_num].graphic_num);
|
place_item_graphic(i,item.graphic_num);
|
||||||
place_item_button(3,i,ITEMBTN_INFO); // info button
|
place_item_button(3,i,ITEMBTN_INFO); // info button
|
||||||
if((stat_screen_mode == MODE_INVEN) &&
|
if((stat_screen_mode == MODE_INVEN) &&
|
||||||
((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use
|
((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use
|
||||||
|
Reference in New Issue
Block a user