Fixed zoom clamping too strictly
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#Autogenerated file. Do not modify.
|
#Autogenerated file. Do not modify.
|
||||||
#Fri Feb 09 10:13:43 EST 2018
|
#Fri Feb 09 14:49:22 EST 2018
|
||||||
version=beta
|
version=beta
|
||||||
androidBuildCode=142
|
androidBuildCode=142
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ public class MapView extends Element implements GestureListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void clampZoom(){
|
private void clampZoom(){
|
||||||
zoom = Mathf.clamp(zoom, 0.4f, 8f);
|
zoom = Mathf.clamp(zoom, 0.2f, 12f);
|
||||||
}
|
}
|
||||||
|
|
||||||
private GridPoint2 project(float x, float y){
|
private GridPoint2 project(float x, float y){
|
||||||
|
|||||||
Reference in New Issue
Block a user