History

rename function for better clarity

Brad Hefta-Gaub committed 10 years ago

Commit 2d199fe1 parent a12034c3 files · +4 −4Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -894,7 +894,7 @@ void ScriptEngine::run() { · 893 unmodified lines
894 qint64 now = usecTimestampNow();894 qint64 now = usecTimestampNow();
895 895
896 // we check for 'now' in the past in case people set their clock back896 // we check for 'now' in the past in case people set their clock back
897 if (_isPhysicsEnabledFunc() && _lastUpdate < now) {897 if (_emitScriptUpdates() && _lastUpdate < now) {
898 float deltaTime = (float) (now - _lastUpdate) / (float) USECS_PER_SECOND;898 float deltaTime = (float) (now - _lastUpdate) / (float) USECS_PER_SECOND;
899 if (!_isFinished) {899 if (!_isFinished) {
900 auto preUpdate = clock::now();900 auto preUpdate = clock::now();