SCUMM: Fix missing cursor in Mac Indy 3 and Loom after loading

This was a regression that was apparently introduced when the animation
flag was cleared for the Mac cursor. The animation made the cursor show
up when loading older save games, but not new ones. That's why it went
unnoticed until now.
This commit is contained in:
Torbjörn Andersson 2022-01-24 16:08:48 +01:00
parent 6d4730ceaf
commit db1fd7ddbb

View File

@ -1578,6 +1578,15 @@ void ScummEngine_v5::saveLoadWithSerializer(Common::Serializer &s) {
}
}
// Reset Mac cursors for Loom and Indy 3, otherwise the cursor will be
// invisible after loading.
if (s.isLoading() && _game.platform == Common::kPlatformMacintosh) {
if ((_game.id == GID_LOOM && !_macCursorFile.empty()) || (_game.id == GID_INDY3 && _macScreen)) {
setBuiltinCursor(0);
}
}
// Regenerate 16bit palette after loading.
// This avoids color issues when loading savegames that have been saved with a different ScummVM port
// that uses a different 16bit color mode than the ScummVM port which is currently used.