mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
28ef3dd7bf
commit
68199396bd
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue