diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index 5932b1c1..a7d20666 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -973,11 +973,16 @@ class MarbleWorld extends Scheduler { if (timeTravelSound == null) { var ttsnd = ResourceLoader.getResource("data/sound/timetravelactive.wav", ResourceLoader.getAudio, this.soundResources); timeTravelSound = AudioManager.playSound(ttsnd, null, true); + + if (alarmSound != null) + alarmSound.pause = true; } } else { if (timeTravelSound != null) { timeTravelSound.stop(); timeTravelSound = null; + if (alarmSound != null) + alarmSound.pause = false; } if (this.timeState.currentAttemptTime >= 3.5) this.timeState.gameplayClock += dt; diff --git a/src/Settings.hx b/src/Settings.hx index 00c5e0ac..5f0a7b5e 100644 --- a/src/Settings.hx +++ b/src/Settings.hx @@ -238,7 +238,7 @@ class Settings { #if hl Window.getInstance().resize(optionsSettings.screenWidth, optionsSettings.screenHeight); Window.getInstance().displayMode = optionsSettings.isFullScreen ? FullscreenResize : Windowed; - uiScale = Window.getInstance().windowToPixelRatio; + uiScale = 1 / Window.getInstance().windowToPixelRatio; #end #if js Window.getInstance().propagateKeyEvents = true;