From: John Tsiombikas Date: Sun, 7 Oct 2018 08:50:54 +0000 (+0300) Subject: fixed camera interpolation bug X-Git-Url: https://eleni.mutantstargoat.com/git/?p=faros-demo;a=commitdiff_plain;h=27f3d9e34d9450685acb20472a84be07793bdaa9 fixed camera interpolation bug --- diff --git a/src/main.cc b/src/main.cc index ce85a59..fee5283 100644 --- a/src/main.cc +++ b/src/main.cc @@ -516,9 +516,6 @@ static void mmotion(int x, int y) cam.theta += dx * 0.5; cam.phi += dy * 0.5; - cam.theta = fmod(cam.theta, 360.0f); - if(cam.theta < 0.0f) cam.theta += 360.0f; - if (cam.phi < -90) cam.phi = -90;