From b2d10f6e694416812e47c9a7f792b796a1f7d78e Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 18 Feb 2018 14:17:13 +0100 Subject: [PATCH] Examples: Fix FirstScene movements --- examples/FirstScene/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/FirstScene/main.cpp b/examples/FirstScene/main.cpp index 2aec4861e..a4ce40454 100644 --- a/examples/FirstScene/main.cpp +++ b/examples/FirstScene/main.cpp @@ -324,12 +324,11 @@ int main() // Début de la boucle de rendu du programme (s'occupant par exemple de mettre à jour le monde) while (application.Run()) { - - Nz::UInt64 elapsedUS = updateClock.Restart() / 1'000'000; + Nz::UInt64 elapsedUs = updateClock.Restart(); // Mise à jour (Caméra) const Nz::UInt64 updateRate = 1000000 / 60; // 60 fois par seconde - updateAccumulator += elapsedUS; + updateAccumulator += elapsedUs; if (updateAccumulator >= updateRate) {