diff --git a/pkgs/maps/main.fnl b/pkgs/maps/main.fnl index be8f967..a7b587d 100644 --- a/pkgs/maps/main.fnl +++ b/pkgs/maps/main.fnl @@ -302,9 +302,10 @@ label.readout { (when (not (bounds= old-bounds bounds)) (fetch-tiles bounds app-state.tiles app-state.zoom) (set map-surface nil))) - (set app-state.orientation - (+ app-state.orientation - (* 0.05 (- app-state.course app-state.orientation)))) + (when (> (math.abs (- app-state.orientation app-state.course)) 20) + (set app-state.orientation + (+ app-state.orientation + (* 0.05 (- app-state.course app-state.orientation))))) (each [name widget (pairs state-widgets)] (case name :speed (widget:set_label