[Scummvm-git-logs] scummvm master -> 5d1592c1ed395adc197f7f69fdeaeea133673c96

criezy criezy at scummvm.org
Mon May 18 21:32:33 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:
5d1592c1ed QUEEN: Fix random long delay when starting game


Commit: 5d1592c1ed395adc197f7f69fdeaeea133673c96
    https://github.com/scummvm/scummvm/commit/5d1592c1ed395adc197f7f69fdeaeea133673c96
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2020-05-18T22:31:03+01:00

Commit Message:
QUEEN: Fix random long delay when starting game

The _lastUpdateTime variable was not initialized before its first
use, which resulted in the first call to update() having a random,
possibly very long, delay.

This was a regression from commit 1c5cbbb (QUEEN: Remove autosave
code). So fortunately the bug is not present in the last release!

Changed paths:
    engines/queen/queen.cpp


diff --git a/engines/queen/queen.cpp b/engines/queen/queen.cpp
index 69d1ec4a75..cff35d9ea2 100644
--- a/engines/queen/queen.cpp
+++ b/engines/queen/queen.cpp
@@ -355,6 +355,7 @@ Common::Error QueenEngine::run() {
 	if (ConfMan.hasKey("save_slot") && canLoadOrSave()) {
 		loadGameState(ConfMan.getInt("save_slot"));
 	}
+	_lastUpdateTime = _system->getMillis();
 
 	while (!shouldQuit()) {
 		if (_logic->newRoom() > 0) {




More information about the Scummvm-git-logs mailing list