HDB: Added missing calls to loadGameState()

This commit is contained in:
Eugene Sandulenko 2019-07-10 22:20:01 +02:00
parent 9d9a1b6c0f
commit 538ab04493

View file

@ -62,6 +62,8 @@ Common::Error HDBGame::loadGameState(int slot) {
return Common::kReadingFailed;
}
_window->closeAll();
Graphics::skipThumbnail(*in);
// Actual Save Data
@ -74,6 +76,14 @@ Common::Error HDBGame::loadGameState(int slot) {
delete in;
// center the player on the screen
int x, y;
_ai->getPlayerXY(&x, &y);
_map->centerMapXY(x + 16, y + 16);
if (!_ai->cinematicsActive())
_gfx->turnOffFade();
return Common::kNoError;
}