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
894894 qint64 now = usecTimestampNow();
895895
896896 // we check for 'now' in the past in case people set their clock back
897− if (_isPhysicsEnabledFunc() && _lastUpdate < now) {
897+ if (_emitScriptUpdates() && _lastUpdate < now) {
898898 float deltaTime = (float) (now - _lastUpdate) / (float) USECS_PER_SECOND;
899899 if (!_isFinished) {
900900 auto preUpdate = clock::now();