Skip to content

Commit

Permalink
feat(radar): ensure targeted object remains visible on manual zoom
Browse files Browse the repository at this point in the history
Ensure that a targeted object will always remain visible on the radar
when switching from automatic to manual zoom.
  • Loading branch information
mwerle committed Nov 25, 2024
1 parent 839e7af commit 2c92249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/pigui/modules/radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ local function displayRadar()
local clicked = ui.mainMenuButton(icon, tt, theme, Vector2(button_size))
if clicked then
if instrument:isAutoZoom() then
instrument:zoomIn()
instrument:zoomOut()
else
instrument:resetZoom()
end
Expand Down

0 comments on commit 2c92249

Please sign in to comment.