From b68a6e036b92c9098bb82aafde5fd90d4510c48b Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 17 Jul 2023 01:52:36 +0530 Subject: [PATCH] fix marble sounds lmao --- src/Main.hx | 2 -- src/Marble.hx | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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(); + } }