Skip to content

Commit

Permalink
Merge pull request #31879 from KorGgenT/fix-minimap-offset
Browse files Browse the repository at this point in the history
fix minimap offset
  • Loading branch information
ZhilkinSerg authored Jun 26, 2019
2 parents 943bfbe + 526b3c5 commit 3fb8798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/magic_teleporter_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class teleporter_callback : public uilist_callback
for( int i = 1; i < menu->w_height - 1; i++ ) {
mvwputch( menu->window, i, start_x, c_magenta, LINE_XOXO );
}
overmap_ui::draw_overmap_chunk( menu->window, g->u, index_pairs[entnum], -1, start_x - 1, 29, 21 );
overmap_ui::draw_overmap_chunk( menu->window, g->u, index_pairs[entnum], 1, start_x + 1, 29, 21 );
mvwprintz( menu->window, 1, start_x + 2, c_white,
string_format( "Distance: %d (%d, %d)",
rl_dist( ms_to_omt_copy( g->m.getabs( g->u.pos() ) ), index_pairs[entnum] ),
Expand Down
4 changes: 2 additions & 2 deletions src/panels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ void overmap_ui::draw_overmap_chunk( const catacurses::window &w_minimap, const
const int cursy = global_omt.y;
const tripoint targ = you.get_active_mission_target();
bool drew_mission = targ == overmap::invalid_tripoint;
const int start_y = start_y_input + ( height / 2 );
const int start_x = start_x_input + ( width / 2 );
const int start_y = start_y_input + ( height / 2 ) - 2;
const int start_x = start_x_input + ( width / 2 ) - 2;

for( int i = -( width / 2 ); i <= width - ( width / 2 ) - 1; i++ ) {
for( int j = -( height / 2 ); j <= height - ( height / 2 ) - 1; j++ ) {
Expand Down

0 comments on commit 3fb8798

Please sign in to comment.