Check for delayed events

This triggers onload for all those events whose (possible) reward is registered with a time delay.
This commit is contained in:
Andrea Rendine
2015-05-09 02:17:42 +02:00
committed by Blake Grotewold
parent cb717b41d0
commit da0d39b579
4 changed files with 126 additions and 34 deletions
+10
View File
@@ -725,6 +725,16 @@
}
},
setInterval: function(callback, interval, skipDouble){
if( Engine.options.doubleTime && !skipDouble ){
Engine.log('Double time, cutting interval in half');
interval /= 2;
}
return setInterval(callback, interval);
},
setTimeout: function(callback, timeout, skipDouble){
if( Engine.options.doubleTime && !skipDouble ){