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

Merge pull request #774 from InfoTeddy/general-bug-fixes-4

Prevent losing level data with rollcredits
This commit is contained in:
Terry Cavanagh 2021-06-12 22:33:17 +10:30 committed by GitHub
commit b06b278bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1567,9 +1567,20 @@ void scriptclass::run(void)
}
else if (words[0] == "rollcredits")
{
game.gamestate = GAMECOMPLETE;
graphics.fademode = 4;
game.creditposition = 0;
#if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR)
if (map.custommode && !map.custommodeforreal)
{
game.returntoeditor();
ed.note = "Rolled credits";
ed.notedelay = 45;
}
else
#endif
{
game.gamestate = GAMECOMPLETE;
graphics.fademode = 4;
game.creditposition = 0;
}
}
else if (words[0] == "finalmode")
{