mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-25 02:04:58 +01:00
Fix -playmusic command line option not working
There's a bug where playtesting from Ved doesn't properly play the music of the level, due to no fault with Ved. This was because the music was being faded out by scriptclass::startgamemode() case 23 after main() called music.play(). To fix this, just call music.play() when all the other variables are being set in Game::customloadquick().
This commit is contained in:
parent
15319b9ed0
commit
199a8f45d6
3 changed files with 3 additions and 1 deletions
|
@ -5163,6 +5163,7 @@ void Game::customloadquick(std::string savfile)
|
||||||
saverx = playrx;
|
saverx = playrx;
|
||||||
savery = playry;
|
savery = playry;
|
||||||
savegc = playgc;
|
savegc = playgc;
|
||||||
|
music.play(playmusic);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -387,6 +387,7 @@ public:
|
||||||
int playrx;
|
int playrx;
|
||||||
int playry;
|
int playry;
|
||||||
int playgc;
|
int playgc;
|
||||||
|
int playmusic;
|
||||||
std::string playassets;
|
std::string playassets;
|
||||||
|
|
||||||
void quittomenu();
|
void quittomenu();
|
||||||
|
|
|
@ -353,8 +353,8 @@ int main(int argc, char *argv[])
|
||||||
game.playrx = saverx;
|
game.playrx = saverx;
|
||||||
game.playry = savery;
|
game.playry = savery;
|
||||||
game.playgc = savegc;
|
game.playgc = savegc;
|
||||||
|
game.playmusic = savemusic;
|
||||||
game.cliplaytest = true;
|
game.cliplaytest = true;
|
||||||
music.play(savemusic);
|
|
||||||
script.startgamemode(23);
|
script.startgamemode(23);
|
||||||
} else {
|
} else {
|
||||||
script.startgamemode(22);
|
script.startgamemode(22);
|
||||||
|
|
Loading…
Add table
Reference in a new issue