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:
Misa authored and Ethan Lee committed 2020-05-08 08:34:46 -04:00
1 parent fc2f269548
commit b83cab8577
1 file changed
+21 -2
+21 -2
View File
@@ -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);
}