From 171e12893048f29bddccf2de183a1dec2f0a00fa Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 13 Dec 2017 20:49:20 +0100 Subject: Adjust zooming speed. --- src/game/interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/interface.cpp b/src/game/interface.cpp index c89cdad..854b620 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -29,7 +29,7 @@ void state_t::tick(double dt) { float view_scale; - view_scale = 3 * exp(camera.zoom * 0.3); + view_scale = 3 * exp(camera.zoom * 0.12); if (size.x > size.y) { view_size.y = view_scale; view_size.x = view_scale * size.x / size.y; @@ -94,8 +94,8 @@ void state_t::tick(double dt) camera.target_zoom -= event.mouseWheelScroll.delta; if (camera.target_zoom < 0) camera.target_zoom = 0; - if (camera.target_zoom > 11) - camera.target_zoom = 11; + if (camera.target_zoom > 17) + camera.target_zoom = 17; break; case sf::Event::KeyPressed: -- cgit