projects
/
faros-demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecac8b1
)
fixed camera interpolation bug
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 7 Oct 2018 08:50:54 +0000
(11:50 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 7 Oct 2018 08:50:54 +0000
(11:50 +0300)
src/main.cc
patch
|
blob
|
history
diff --git
a/src/main.cc
b/src/main.cc
index
ce85a59
..
fee5283
100644
(file)
--- 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;