summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameCamera.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameCamera.java b/core/src/ch/asynk/tankontank/screens/GameCamera.java
index 5393177..c76243b 100644
--- a/core/src/ch/asynk/tankontank/screens/GameCamera.java
+++ b/core/src/ch/asynk/tankontank/screens/GameCamera.java
@@ -59,7 +59,7 @@ public class GameCamera extends OrthographicCamera
this.widthFactor = (viewportWidth / screenWidth);
this.heightFactor = (viewportHeight / screenHeight);
- clampZoom();
+ clampPosition();
update(true);
hudMatrix.set(combined);
hudMatrix.setToOrtho2D(0, 0, window.width, window.height);
@@ -117,7 +117,6 @@ public class GameCamera extends OrthographicCamera
public void clampZoom()
{
zoom = MathUtils.clamp(zoom, zoomIn, zoomOut);
- clampPosition();
}
public void clampPosition()