mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Directly do returntolab code instead of relying on a script
Having to rely on a script means the fade out wouldn't be self-contained in MAPMODE, which could cause a small issue where you could die during the return to the lab. But that issue is now fixed. There's no need to use the script, and anyway the endcutscene() and untilbars() in said script don't do anything because there are no cutscene bars in the first place, so no need to worry about those.
This commit is contained in:
parent
fc2f269548
commit
b83cab8577
1 changed files with 21 additions and 2 deletions
|
@ -7361,6 +7361,25 @@ void Game::returntolab()
|
|||
{
|
||||
gamestate = GAMEMODE;
|
||||
graphics.fademode = 4;
|
||||
startscript = true;
|
||||
newscript="returntolab";
|
||||
map.gotoroom(119, 107);
|
||||
int player = obj.getplayer();
|
||||
if (player > -1)
|
||||
{
|
||||
obj.entities[player].xp = 132;
|
||||
obj.entities[player].yp = 137;
|
||||
}
|
||||
gravitycontrol = 0;
|
||||
|
||||
savepoint = 0;
|
||||
saverx = 119;
|
||||
savery = 107;
|
||||
savex = 132;
|
||||
savey = 137;
|
||||
savegc = 0;
|
||||
if (player > -1)
|
||||
{
|
||||
savedir = obj.entities[player].dir;
|
||||
}
|
||||
|
||||
music.play(11);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue