fixed camera interpolation bug
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 7 Oct 2018 08:50:54 +0000 (11:50 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 7 Oct 2018 08:50:54 +0000 (11:50 +0300)
src/main.cc

index ce85a59..fee5283 100644 (file)
@@ -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;