From 760d2e8c0dcd9b82c60046a2856299f9bc40948f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 19 Jan 2012 23:29:04 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20l'animation=20de=20la=20cam?= =?UTF-8?q?=C3=A9ra=20pour=20=C3=A9viter=20les=20=C3=A0-coups=20si=20le=20?= =?UTF-8?q?FPS=20descend=20en-dessous=20de=2010.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.cpp b/view.cpp index e464ecb..1531044 100644 --- a/view.cpp +++ b/view.cpp @@ -142,7 +142,7 @@ void View::renderScene(int lastTime, int currentTime) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) ; - camera.animation(currentTime-lastTime); + camera.animation(std::min(100, currentTime-lastTime)); camera.setCamera(); lod.setCamera(camera.cameraCenter);