mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-04 19:04:08 +00:00
Clear recent save slot when entering the title screen or starting a mod.
This fixes a bug where loading a normal saved game and then dying in a mod (or vice versa) would cause the game to attempt loading the save game in the wrong context, resulting in a blank error map and many "tile dummy" error messages.
This commit is contained in:
parent
2d7eeb4781
commit
b26eac658a
2 changed files with 3 additions and 1 deletions
|
@ -2930,6 +2930,7 @@ void DSQ::createSaveSlots(SaveSlotMode ssm)
|
||||||
void DSQ::title(bool fade)
|
void DSQ::title(bool fade)
|
||||||
{
|
{
|
||||||
core->settings.runInBackground = false;
|
core->settings.runInBackground = false;
|
||||||
|
recentSaveSlot = -1;
|
||||||
|
|
||||||
dsq->overlay->color = 0;
|
dsq->overlay->color = 0;
|
||||||
dsq->overlay->alpha.interpolateTo(1, 1);
|
dsq->overlay->alpha.interpolateTo(1, 1);
|
||||||
|
|
|
@ -185,6 +185,7 @@ void Mod::start()
|
||||||
core->sound->stopMusic();
|
core->sound->stopMusic();
|
||||||
|
|
||||||
enqueueModStart = 1;
|
enqueueModStart = 1;
|
||||||
|
dsq->recentSaveSlot = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mod::applyStart()
|
void Mod::applyStart()
|
||||||
|
|
Loading…
Add table
Reference in a new issue