From 9847aa3374f965db944dcd609e19c3b1c72f36f8 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 20 Jan 2015 08:45:52 +0100 Subject: [PATCH] Increased mininum camera distance because the marble got scaled up. --- camera.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera.cc b/camera.cc index 109ff7a..dbea7e4 100644 --- a/camera.cc +++ b/camera.cc @@ -48,8 +48,8 @@ void Camera::updateRotation(glm::vec2 rotation) { } void Camera:: updateDistance(float distance) { - if (this->distance + distance <= 1.0f) { - this->distance = 1.0f; + if (this->distance + distance <= 2.5f) { + this->distance = 2.5f; } else if (this->distance + distance >= 30.0f) { this->distance = 30.f;