aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/runtime.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-23 10:37:04 -0800
committerJose Antonio Marquez2012-02-23 10:37:04 -0800
commit287a0bad5b774a380ec6c8b3ddf24dc03234e248 (patch)
treeedffa1dd9df53f26da4135068686997ccfbdf083 /js/helper-classes/RDGE/src/core/script/runtime.js
parent14a8f4c4e373db213b3d42d30edaea8354ae57e3 (diff)
parentcc295dd0fb873505eed01c232bd987cf6e2dcdd9 (diff)
downloadninja-287a0bad5b774a380ec6c8b3ddf24dc03234e248.tar.gz
Merge branch 'refs/heads/NinjaInternal' into FileIO
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/runtime.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/runtime.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/runtime.js b/js/helper-classes/RDGE/src/core/script/runtime.js
index 18b9b223..3d824faf 100755
--- a/js/helper-classes/RDGE/src/core/script/runtime.js
+++ b/js/helper-classes/RDGE/src/core/script/runtime.js
@@ -206,11 +206,15 @@ RDGETask = (function() {
206 self.lastTime = self.currTime; 206 self.lastTime = self.currTime;
207 } 207 }
208 208
209 this.start = function() { 209 this.start = function()
210 this.running = true; 210 {
211 this.currTime = new Date().getTime(); 211 if (!this.running)
212 this.lastTime = this.currTime; 212 {
213 tasks[this.id](); 213 this.running = true;
214 this.currTime = new Date().getTime();
215 this.lastTime = this.currTime;
216 tasks[this.id]();
217 }
214 } 218 }
215 219
216 this.stop = function() { 220 this.stop = function() {