mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
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.
This commit is contained in:
parent
b419601b41
commit
90929d80ea
1 changed files with 17 additions and 0 deletions
|
@ -635,6 +635,23 @@ void menuactionpress()
|
||||||
{
|
{
|
||||||
music.playef(11);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue