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

eriktorbjorn noreply at scummvm.org
Sat May 18 22:14:59 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:
ada0a4c0b9 SCUMM: Optionally ask before clearing series IQ score in Indy 3 Mac


Commit: ada0a4c0b9e764e50b8f3081006aaa50263c9940
    https://github.com/scummvm/scummvm/commit/ada0a4c0b9e764e50b8f3081006aaa50263c9940
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2024-05-19T00:14:44+02:00

Commit Message:
SCUMM: Optionally ask before clearing series IQ score in Indy 3 Mac

According to the manual, "You will be given a chance to change your
mind" when clicking on the "Reset Series IQ button". I've never seen the
original do that, but I like the idea so let's add it as an enhancement.

(NB: Resetting the IQ score currently does not work properly.)

Changed paths:
    engines/scumm/macgui/macgui_indy3.cpp


diff --git a/engines/scumm/macgui/macgui_indy3.cpp b/engines/scumm/macgui/macgui_indy3.cpp
index 3397ee4bd28..85f8407ddf5 100644
--- a/engines/scumm/macgui/macgui_indy3.cpp
+++ b/engines/scumm/macgui/macgui_indy3.cpp
@@ -1574,9 +1574,11 @@ bool MacIndy3Gui::runIqPointsDialog() {
 			break;
 
 		if (clicked == 1) {
-			((ScummEngine_v4 *)_vm)->clearSeriesIQPoints();
-			window->replaceSubstitution(1, Common::String::format("%d", _vm->VAR(245)));
-			window->redrawWidget(4);
+			if (!_vm->enhancementEnabled(kEnhUIUX) || runOkCancelDialog("Are you sure you want to reset the series IQ score?")) {
+				((ScummEngine_v4 *)_vm)->clearSeriesIQPoints();
+				window->replaceSubstitution(1, Common::String::format("%d", _vm->VAR(245)));
+				window->redrawWidget(4);
+			}
 		}
 	}
 




More information about the Scummvm-git-logs mailing list