mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Abstract returning-to-editor code to Game::returntoeditor()
This way I can easily move it around without moving around a bunch of lines of code.
This commit is contained in:
@@ -1537,27 +1537,7 @@ void gameinput()
|
||||
game.activeactivity = -1;
|
||||
}
|
||||
}else{
|
||||
game.gamestate = EDITORMODE;
|
||||
|
||||
graphics.textboxremove();
|
||||
game.hascontrol = true;
|
||||
game.advancetext = false;
|
||||
game.completestop = false;
|
||||
game.state = 0;
|
||||
graphics.showcutscenebars = false;
|
||||
graphics.fademode = 0;
|
||||
|
||||
graphics.backgrounddrawn=false;
|
||||
music.fadeout();
|
||||
//If warpdir() is used during playtesting, we need to set it back after!
|
||||
for (int j = 0; j < ed.maxheight; j++)
|
||||
{
|
||||
for (int i = 0; i < ed.maxwidth; i++)
|
||||
{
|
||||
ed.level[i+(j*ed.maxwidth)].warpdir=ed.kludgewarpdir[i+(j*ed.maxwidth)];
|
||||
}
|
||||
}
|
||||
map.scrolldir = 0;
|
||||
game.returntoeditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user