Skip to content

Commit

Permalink
Fix mouse overmap navigation while using an isometric non-overmap til…
Browse files Browse the repository at this point in the history
…eset
  • Loading branch information
Qrox authored and Procyonae committed Jun 12, 2024
1 parent fedfb57 commit 6299518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3968,10 +3968,11 @@ std::optional<tripoint> input_context::get_coordinates( const catacurses::window
}

const point screen_pos = coordinate - win_min;
const bool use_isometric = 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 6299518

Please sign in to comment.