Skip to content

Commit

Permalink
Fixed graffiti not showing full text in mouselook (#45691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Burmistrov authored Nov 29, 2020
1 parent 9c5d0be commit 2015b37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6418,9 +6418,10 @@ void game::print_graffiti_info( const tripoint &lp, const catacurses::window &w_

const int max_width = getmaxx( w_look ) - column - 2;
if( m.has_graffiti_at( lp ) ) {
fold_and_print( w_look, point( column, ++line ), max_width, c_light_gray,
m.ter( lp ) == t_grave_new ? _( "Graffiti: %s" ) : _( "Inscription: %s" ),
m.graffiti_at( lp ) );
const int lines = fold_and_print( w_look, point( column, ++line ), max_width, c_light_gray,
m.ter( lp ) == t_grave_new ? _( "Graffiti: %s" ) : _( "Inscription: %s" ),
m.graffiti_at( lp ) );
line += lines - 1;
}
}

Expand Down

0 comments on commit 2015b37

Please sign in to comment.