Skip to content

Commit

Permalink
Update game.cpp (#36787)
Browse files Browse the repository at this point in the history
remove superfluous refresh calls from list item/monster views
set item list width to match default/minimal monster list width
  • Loading branch information
1n17 authored and kevingranade committed Jan 8, 2020
1 parent a9432ab commit 44b584e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7131,8 +7131,6 @@ void game::reset_item_list_state( const catacurses::window &window, int height,
xpos += shortcut_print( window, point( xpos, ypos ), c_white, c_light_green,
tokens[i] ) + gap_spaces;
}

refresh_all();
}

void game::list_items_monsters()
Expand Down Expand Up @@ -7174,7 +7172,6 @@ void game::list_items_monsters()
}
}

refresh_all();
if( ret == game::vmenu_ret::FIRE ) {
avatar_action::fire( u, m, u.weapon );
}
Expand All @@ -7184,7 +7181,7 @@ void game::list_items_monsters()
game::vmenu_ret game::list_items( const std::vector<map_item_stack> &item_list )
{
int iInfoHeight = std::min( 25, TERMY / 2 );
const int width = 44;
const int width = 45;
const int offsetX = TERMX - VIEW_OFFSET_X - width;

catacurses::window w_items = catacurses::newwin( TERMY - 2 - iInfoHeight - VIEW_OFFSET_Y * 2,
Expand Down

0 comments on commit 44b584e

Please sign in to comment.