diff --git a/src/camera.cpp b/src/camera.cpp index 3396c1b..6a97c60 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -38,7 +38,7 @@ void camera::update(const input *in_sys) { std::get<1>(pos) = dist * sin(yaw); std::get<2>(pos) = dist * cos(yaw) * cos(angle); - dist -= in_sys->get_scroll(); - if(dist < 0) - dist = 0; + dist -= static_cast(in_sys->get_scroll()) / 2.5f; + if(dist < 0.0f) + dist = 0.0f; }