1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Move generatecustomminimap to case 21

This commit is contained in:
AllyTally 2022-11-30 12:17:05 -04:00 committed by Misa Elizabeth Kai
parent 0bf1e1494b
commit 7cdfe6e9a3

View file

@ -2857,10 +2857,6 @@ void scriptclass::startgamemode( int t )
map.resetplayer();
map.gotoroom(game.saverx, game.savery);
map.initmapdata();
cl.generatecustomminimap();
map.customshowmm = true;
graphics.fademode = FADE_START_FADEIN;
break;
case 21: //play custom level (in editor)
@ -2892,10 +2888,18 @@ void scriptclass::startgamemode( int t )
map.resetplayer();
map.gotoroom(game.saverx, game.savery);
map.initmapdata();
if(cl.levmusic>0){
cl.generatecustomminimap();
map.customshowmm = true;
if (cl.levmusic > 0)
{
music.play(cl.levmusic);
}else{
music.currentsong=-1;
}
else
{
music.currentsong = -1;
}
break;
# endif /* NO_EDITOR */