Removed evil evals

Filters now reset when the stop button is clicked.
This commit is contained in:
djdolphin 2013-11-03 07:10:45 -05:00
parent 64535641fc
commit c40c1b4027
3 changed files with 18 additions and 23 deletions

View file

@ -89,6 +89,11 @@ Runtime.prototype.stopAll = function() {
if (typeof runtime.sprites[s].hideBubble == 'function')
runtime.sprites[s].hideBubble();
}
// Reset graphic effects
for (var s = 0; s < runtime.sprites.length; s++) {
if (typeof runtime.sprites[s].hideBubble == 'function')
runtime.sprites[s].resetFilters();
}
}
// Step method for execution - called every 33 milliseconds