mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Abstract checkpoint saving to its own function
This also makes the save failed textbox not appear in special modes, and allows custom levels to quicksave from checkpoints as well.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
41d5e688e9
commit
c04c6bc552
@@ -1207,17 +1207,7 @@ void scriptclass::run(void)
|
||||
game.savedir = obj.entities[i].dir;
|
||||
}
|
||||
|
||||
if (game.checkpoint_saving)
|
||||
{
|
||||
bool success = game.savequick();
|
||||
game.gamesaved = success;
|
||||
game.gamesavefailed = !success;
|
||||
|
||||
if (game.gamesavefailed) {
|
||||
game.show_save_fail();
|
||||
graphics.textboxapplyposition();
|
||||
}
|
||||
}
|
||||
game.checkpoint_save();
|
||||
}
|
||||
else if (words[0] == "gamestate")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user