Skip to content

Commit

Permalink
fix: avoid w_hobbies overlapping with w_guide (#56823)
Browse files Browse the repository at this point in the history
w_guide can be quite long in randomized character creation, so w_hobbies
would sometimes cover up the end of those long lines. This reduces the
height of w_hobbies so that doesn't happen.
  • Loading branch information
perryprog authored Apr 20, 2022
1 parent 19bac78 commit a436676
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3450,7 +3450,8 @@ tab_direction set_description( avatar &you, const bool allow_reroll,
w_traits = catacurses::newwin( TERMY - 10, ncol2, point( beginx2, 9 ) );
w_bionics = catacurses::newwin( TERMY - 10, ncol3, point( beginx3, 9 ) );
w_proficiencies = catacurses::newwin( TERMY - 20, 19, point( 2, 15 ) );
w_hobbies = catacurses::newwin( TERMY - 10, ncol4, point( beginx4, 9 ) );
// Extra - 11 to avoid overlap with long text in w_guide.
w_hobbies = catacurses::newwin( TERMY - 10 - 11, ncol4, point( beginx4, 9 ) );
w_scenario = catacurses::newwin( 1, ncol2, point( beginx2, 3 ) );
w_profession = catacurses::newwin( 1, ncol3, point( beginx3, 3 ) );
w_skills = catacurses::newwin( TERMY - 10, 23, point( 22, 9 ) );
Expand Down Expand Up @@ -3736,7 +3737,7 @@ tab_direction set_description( avatar &you, const bool allow_reroll,
fold_and_print( w_guide, point( 0, getmaxy( w_guide ) - 7 ), TERMX, c_light_gray,
_( "Press <color_light_green>%s</color> to pick a random name, "
"<color_light_green>%s</color> to randomize all description values, "
"<color_light_green>%s</color> to randomize all but scenario or "
"<color_light_green>%s</color> to randomize all but scenario, or "
"<color_light_green>%s</color> to randomize everything." ),
ctxt.get_desc( "RANDOMIZE_CHAR_NAME" ),
ctxt.get_desc( "RANDOMIZE_CHAR_DESCRIPTION" ),
Expand Down

0 comments on commit a436676

Please sign in to comment.