Skip to content

Commit

Permalink
Merge pull request #74481 from Procyonae/FixOvermapMouseMovementWithIso
Browse files Browse the repository at this point in the history
Fix mouse overmap navigation while using an isometric non-overmap tileset
  • Loading branch information
dseguin authored Jun 12, 2024
2 parents 22dc5fe + 7ca462d commit b172f90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3968,10 +3968,12 @@ std::optional<tripoint> input_context::get_coordinates( const catacurses::window
}

const point screen_pos = coordinate - win_min;
const bool use_isometric = g->w_overmap &&
capture_win == g->w_overmap ? false : g->is_tileset_isometric();

const point_bub_ms p = cata_tiles::screen_to_player(
screen_pos, dim.scaled_font_size, win_size,
point_bub_ms( offset ), g->is_tileset_isometric() );
point_bub_ms( offset ), use_isometric );

return tripoint( p.raw(), get_map().get_abs_sub().z() );
}
Expand Down

0 comments on commit b172f90

Please sign in to comment.