aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2017-10-31 22:40:49 +0000
committerThierry Crozat2018-01-23 02:15:36 +0000
commit15b4e7a298d2e553680d2f8a77984ea1745b1e6a (patch)
treeeec33035c42c02b46c67b3525b62f5f9ca6e432a
parent201fd0ff56493fce78508d4a1acef6ec8de954cb (diff)
downloadscummvm-rg350-15b4e7a298d2e553680d2f8a77984ea1745b1e6a.tar.gz
scummvm-rg350-15b4e7a298d2e553680d2f8a77984ea1745b1e6a.tar.bz2
scummvm-rg350-15b4e7a298d2e553680d2f8a77984ea1745b1e6a.zip
SUPERNOVA: Fix delay when loading a savedgame while a message is displayed
This required the user to click a mouse button to close the message and get to the mew state. Now the message is automatically closed before loading the new state.
-rw-r--r--engines/supernova/supernova.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index c54ce1cdec..65fefea7f3 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -911,6 +911,10 @@ bool SupernovaEngine::loadGame(int slot) {
return false; //Common::kUnknownError;
}
+ // Make sure no message is displayed as this would otherwise delay the
+ // switch to the new location until a mouse click.
+ removeMessage();
+
int descriptionSize = savefile->readSint16LE();
savefile->skip(descriptionSize);
savefile->skip(6);