[Scummvm-cvs-logs] scummvm master -> d836a52557469c3d24ee6e95353fdf12724aa393

m-kiewitz m_kiewitz at users.sourceforge.net
Sun Feb 7 01:11:15 CET 2016


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:
d836a52557 AGI: Do not set TIME_DELAY at all on restart


Commit: d836a52557469c3d24ee6e95353fdf12724aa393
    https://github.com/scummvm/scummvm/commit/d836a52557469c3d24ee6e95353fdf12724aa393
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-07T01:10:38+01:00

Commit Message:
AGI: Do not set TIME_DELAY at all on restart

Original AGI did not do it and it would ruin the game speed of
at least Larry on Apple IIgs after dying.

Changed paths:
    engines/agi/cycle.cpp



diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index 17c9c87..6c3f2d6 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -306,7 +306,7 @@ int AgiEngine::playGame() {
 	setFlag(VM_FLAG_LOGIC_ZERO_FIRST_TIME, true); // not in 2.917
 	setFlag(VM_FLAG_NEW_ROOM_EXEC, true);         // needed for MUMG and SQ2!
 	setFlag(VM_FLAG_SOUND_ON, true);              // enable sound
-	setVar(VM_VAR_TIME_DELAY, 2);                 // "normal" speed
+	// do not set VM_VAR_TIME_DELAY, original AGI did not do it (in the data segment it was simply set to 0)
 
 	_game.gfxMode = true;
 	_text->promptRow_Set(22);
@@ -396,7 +396,7 @@ int AgiEngine::runGame() {
 
 		if (_restartGame) {
 			setFlag(VM_FLAG_RESTART_GAME, true);
-			setVar(VM_VAR_TIME_DELAY, 2);   // "normal" speed
+			// do not set VM_VAR_TIME_DELAY, original AGI did not do it
 
 			// Reset in-game timer
 			inGameTimerReset();






More information about the Scummvm-git-logs mailing list