aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/runtime.js
diff options
context:
space:
mode:
authorhwc4872012-02-22 04:44:07 -0800
committerhwc4872012-02-22 04:44:07 -0800
commit9d3589feb0174c09d1c1bac405660f8900259c7d (patch)
treee016fac42e16871b4f2a8d3896cde0bfb786f29f /js/helper-classes/RDGE/src/core/script/runtime.js
parentf06f44ab3fcca109f126eae4f6fb915c5dd28791 (diff)
downloadninja-9d3589feb0174c09d1c1bac405660f8900259c7d.tar.gz
Adding bug fixes.
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() {