From 2fad14336c0afd4fd3b6c6068a0e4c504c644b95 Mon Sep 17 00:00:00 2001 From: liabru Date: Fri, 2 May 2014 12:53:44 +0100 Subject: [PATCH] fixed: changed correction to now be optional in Engine.update (defaults to 1) --- src/core/Engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Engine.js b/src/core/Engine.js index 017421f..2e06a0f 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -183,7 +183,7 @@ var Engine = {}; * @return engine */ Engine.update = function(engine, delta, correction) { - correction = correction || 1; + correction = (typeof correction !== 'undefined') ? correction : 1; var world = engine.world, timing = engine.timing,