From 1fb288b22054e324b86ac1b4f3f9ee9e839db9b0 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 15 Nov 2014 14:54:01 +0100 Subject: [PATCH] Setting max Camera distance to 30. --- camera.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera.cc b/camera.cc index 62736ba..d5fe672 100644 --- a/camera.cc +++ b/camera.cc @@ -47,8 +47,8 @@ void Camera:: updateDistance(float distance) { if (this->distance + distance <= 1.0f) { this->distance = 1.0f; } - else if (this->distance + distance >= 100.0f) { - this->distance = 100.f; + else if (this->distance + distance >= 30.0f) { + this->distance = 30.f; } else { this->distance += distance;