[Scummvm-git-logs] scummvm master -> c78780bca0c0e276227c21275c3a72737cb633f3

eriktorbjorn noreply at scummvm.org
Tue May 14 18:25:57 UTC 2024


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:
c78780bca0 AGI: Clarified text delay comment at m-kiewitz's request


Commit: c78780bca0c0e276227c21275c3a72737cb633f3
    https://github.com/scummvm/scummvm/commit/c78780bca0c0e276227c21275c3a72737cb633f3
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2024-05-14T20:25:48+02:00

Commit Message:
AGI: Clarified text delay comment at m-kiewitz's request

Changed paths:
    engines/agi/text.cpp


diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index ec0c9d6cb2f..58dbbb1c4a9 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -387,7 +387,9 @@ bool TextMgr::messageBox(const char *textPtr) {
 	uint32 windowTimer = _vm->getVar(VM_VAR_WINDOW_AUTO_CLOSE_TIMER);
 	debugC(3, kDebugLevelText, "blocking window v21=%d", windowTimer);
 
-	windowTimer = windowTimer * 20; // 1 = 0.5 seconds (20 cycles)
+	// 1 = 0.5 seconds. NB: ScummVM runs at 40 fps, not 20, so we have
+	// to multiply by 20, not 10, to get the number of cycles.
+	windowTimer = windowTimer * 20;
 	_messageBoxCancelled = false;
 
 	_vm->inGameTimerResetPassedCycles();




More information about the Scummvm-git-logs mailing list