1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 19:13:31 +02:00

Set custommode and custommodeforreal before loading level

This fixes a bug where if a level errors upon loading, it wouldn't take
you back to the levels list.
This commit is contained in:
Misa 2023-05-17 12:12:36 -07:00
parent 28ef3dd7bf
commit 68199396bd

View File

@ -2827,6 +2827,9 @@ void scriptclass::startgamemode(const enum StartMode mode)
case Start_CUSTOM:
case Start_CUSTOM_QUICKSAVE:
{
map.custommodeforreal = true;
map.custommode = true;
std::string filename = std::string(cl.ListOfMetaData[game.playcustomlevel].filename);
if (!cl.load(filename))
{
@ -2835,8 +2838,6 @@ void scriptclass::startgamemode(const enum StartMode mode)
}
cl.findstartpoint();
map.custommodeforreal = true;
map.custommode = true;
map.customshowmm = true;
music.fadeout();