SCUMM: v7-8: Remove all blast texts before loading a savestate

This fixes an issue in COMI, in which bringing up the recipe book and then pulling it down
left the recipe texts on screen on the new room for several frames.
This commit is contained in:
Andrea Boscarino 2022-06-03 17:51:56 +02:00
parent 085130c6da
commit 75b50b99b4
2 changed files with 9 additions and 1 deletions

View file

@ -544,6 +544,13 @@ bool ScummEngine::loadState(int slot, bool compat, Common::String &filename) {
sb = _screenB;
sh = _screenH;
#ifdef ENABLE_SCUMM_7_8
// Remove any blast text leftovers
if (_game.version >= 7) {
((ScummEngine_v7 *)this)->removeBlastTexts();
}
#endif
// Restore the virtual screens and force a fade to black.
initScreens(0, _screenHeight);