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:
parent
0bf1e1494b
commit
7cdfe6e9a3
1 changed files with 11 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue