Skip to content

Commit

Permalink
fix: set default minZoom to CameraScaler to prevent inf zoom out
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharlottes committed Aug 28, 2023
1 parent dea919b commit f272121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import mindustry.game.EventType;

public class CameraScaler extends Tool {
private float lastMinZoom;
private float lastMinZoom = 1.5f;

// TODO: set subconfig by slider later
private float targetMinZoom = 0.35f;
Expand Down

0 comments on commit f272121

Please sign in to comment.