From 90929d80ea910b413c6fe0fd47ea0493960e8615 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 10 Jul 2020 16:55:56 -0700 Subject: [PATCH] Fix wrong Tower music when toggling Flip Mode from in-game options The music for the Tower is supposed to be ecroF evitisoP in Flip Mode, and Positive Force when not in Flip Mode. However, if you go to the options from the pause menu and toggle Flip Mode, the music isn't changed. Fixing this is pretty simple, just check the current area if not in a custom level and play the correct track accordingly when toggling Flip Mode from in-game. --- desktop_version/src/Input.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 91bf975e..f0fc6db0 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -635,6 +635,23 @@ void menuactionpress() { music.playef(11); } + // Fix wrong area music in Tower (Positive Force vs. ecroF evitisoP) + if (map.custommode) + { + break; + } + int area = map.area(game.roomx, game.roomy); + if (area == 3 || area == 11) + { + if (graphics.setflipmode) + { + music.play(9); // ecroF evitisoP + } + else + { + music.play(2); // Positive Force + } + } } break; }