diff -r 9af5c039b678 -r 96d65f841791 ccdemos/common_sdl.h --- a/ccdemos/common_sdl.h Mon May 05 15:31:14 2008 +0200 +++ b/ccdemos/common_sdl.h Tue May 06 09:39:58 2008 +0200 @@ -94,11 +94,11 @@ break; } if (event.key.keysym.sym == SDLK_LEFT) { - roty = +0.01; + roty = +0.01f; break; } if (event.key.keysym.sym == SDLK_RIGHT) { - roty = -0.01; + roty = -0.01f; break; } if (event.key.keysym.sym == SDLK_DOWN) { @@ -152,8 +152,6 @@ cam.rotate(Quaternion(cos(roty),0,sin(roty),0).normalize()); cam.rotate(Quaternion(cos(rotx), cam.getu()[0]*sin(rotx),0,cam.getu()[2]*sin(rotx)).normalize()); - //cam.u.y = 0; - //cam.u.normalize(); if (move != 0.0) cam.move(move,0,0); if (update_callback != NULL)