diff --git a/src/Main.hx b/src/Main.hx index 86dec017..faebed0b 100644 --- a/src/Main.hx +++ b/src/Main.hx @@ -39,8 +39,6 @@ class Main extends hxd.App { override function init() { super.init(); - hxd.Timer.smoothFactor = 0; - s3d.renderer = new Renderer(); #if debug s3d.checkPasses = false; diff --git a/src/Marble.hx b/src/Marble.hx index dbc47780..88655941 100644 --- a/src/Marble.hx +++ b/src/Marble.hx @@ -2117,4 +2117,16 @@ class Marble extends GameObject { marbledts.scale(this._prevRadius / 0.675); } } + + override function dispose() { + if (this.rollSound != null) + this.rollSound.stop(); + if (this.rollMegaSound != null) + this.rollMegaSound.stop(); + if (this.slipSound != null) + this.slipSound.stop(); + if (this.helicopterSound != null) + this.helicopterSound.stop(); + super.dispose(); + } }