[Scummvm-git-logs] scummvm master -> 95c464e338a20c2743d650fc8ed415d5cdddb530

Strangerke Strangerke at scummvm.org
Wed Jun 10 12:26:57 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
95c464e338 KINGDOM: Modify readSavegameHeader in order to match the other engines


Commit: 95c464e338a20c2743d650fc8ed415d5cdddb530
    https://github.com/scummvm/scummvm/commit/95c464e338a20c2743d650fc8ed415d5cdddb530
Author: Strangerke (Strangerke at scummvm.org)
Date: 2020-06-10T13:26:45+01:00

Commit Message:
KINGDOM: Modify readSavegameHeader in order to match the other engines

Changed paths:
    engines/kingdom/kingdom.cpp


diff --git a/engines/kingdom/kingdom.cpp b/engines/kingdom/kingdom.cpp
index 728d5212d6..e97c78afd4 100644
--- a/engines/kingdom/kingdom.cpp
+++ b/engines/kingdom/kingdom.cpp
@@ -280,21 +280,18 @@ void KingdomGame::titlePage() {
 	_sound = false;
 	fadeToBlack2();
 	playMovie(200);
-	if (shouldQuit()) {
+	if (shouldQuit())
 		return;
-	}
 
 	fadeToBlack2();
 	playMovie(206);
-	if (shouldQuit()) {
+	if (shouldQuit())
 		return;
-	}
 
 	fadeToBlack2();
 	playMovie(198);
-	if (shouldQuit()) {
+	if (shouldQuit())
 		return;
-	}
 
 	fadeToBlack2();
 }
@@ -917,8 +914,7 @@ bool KingdomGame::readSavegameHeader(Common::InSaveFile *in, KingdomSavegameHead
 		header._saveName += ch;
 
 	// Get the thumbnail
-	Graphics::loadThumbnail(*in, header._thumbnail);
-	if (!header._thumbnail)
+	if (!Graphics::loadThumbnail(*in, header._thumbnail))
 		return false;
 
 	// Read in save date/time




More information about the Scummvm-git-logs mailing list