From 858a4f56c3899798fea179eb275b4fcbf55e601f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 18 Dec 2017 19:58:18 +0000 Subject: Change how the view size is calculated. The old way could result in very large fields of view if the window was made very thin. --- src/game/interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/interface.cpp b/src/game/interface.cpp index d125392..67f5482 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -32,8 +32,8 @@ void state_t::tick(double dt) { float view_scale; - view_scale = 3 * exp(camera.zoom * 0.12); - if (size.x > size.y) { + view_scale = 4.5 * exp(camera.zoom * 0.12); + if (size.x < size.y) { view_size.y = view_scale; view_size.x = view_scale * size.x / size.y; } else { -- cgit