Skip to content

Commit

Permalink
Fixed offset for bionics slots UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Jan 30, 2020
1 parent 3045555 commit e8ab8f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bionics_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static void draw_description( const catacurses::window &win, const bionic &bio )
static void draw_connectors( const catacurses::window &win, const int start_y, const int start_x,
const int last_x, const bionic_id &bio_id )
{
const int LIST_START_Y = 6;
const int LIST_START_Y = 7;
// first: pos_y, second: occupied slots
std::vector<std::pair<int, size_t>> pos_and_num;
for( const auto &elem : bio_id->occupied_bodyparts ) {
Expand Down Expand Up @@ -437,7 +437,7 @@ void player::power_bionics()

// Title window
const int TITLE_START_Y = START_Y + 1;
const int HEADER_LINE_Y = TITLE_HEIGHT + TITLE_TAB_HEIGHT + 1;
const int HEADER_LINE_Y = TITLE_HEIGHT + TITLE_TAB_HEIGHT;
catacurses::window w_title = catacurses::newwin( TITLE_HEIGHT, WIDTH - 2, point( START_X + 1,
START_Y ) );

Expand Down

0 comments on commit e8ab8f1

Please sign in to comment.