summaryrefslogtreecommitdiff
path: root/src/game/interface.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-13 20:49:20 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-13 20:49:20 +0100
commit171e12893048f29bddccf2de183a1dec2f0a00fa (patch)
tree81e3d37df99d5b68a2b274ef2bd21a0c3f8c2ca8 /src/game/interface.cpp
parentab3e10a812ffdc89fc288bc965fa9d40459d2de8 (diff)
Adjust zooming speed.
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r--src/game/interface.cpp6
1 files changed, 3 insertions, 3 deletions
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: