[Scummvm-git-logs] scummvm master -> 0a3fd1cfe085d3ba5b75a02fcbdcc2310ed4670b
dreammaster
noreply at scummvm.org
Sat Sep 13 10:57:38 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
0a3fd1cfe0 BAGEL: DEMO: Fix returning to map from Cryptograms
Commit: 0a3fd1cfe085d3ba5b75a02fcbdcc2310ed4670b
https://github.com/scummvm/scummvm/commit/0a3fd1cfe085d3ba5b75a02fcbdcc2310ed4670b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-09-13T03:57:32-07:00
Commit Message:
BAGEL: DEMO: Fix returning to map from Cryptograms
Changed paths:
engines/bagel/hodjnpodj/metagame/demo/hodjpodj.cpp
diff --git a/engines/bagel/hodjnpodj/metagame/demo/hodjpodj.cpp b/engines/bagel/hodjnpodj/metagame/demo/hodjpodj.cpp
index aba1484c50e..6ccc12ba05a 100644
--- a/engines/bagel/hodjnpodj/metagame/demo/hodjpodj.cpp
+++ b/engines/bagel/hodjnpodj/metagame/demo/hodjpodj.cpp
@@ -252,16 +252,18 @@ void CHodjPodjWindow::OnParentNotify(unsigned int msg, LPARAM lParam) {
case WM_DESTROY:
nGameReturn = lParam;
- if (nGameReturn < 0) {
- // Restart intro video
- PostMessage(WM_COMMAND, IDC_PLAY_DEMO_MOVIE);
-
- } else if (nGameReturn == 0) {
+ if (_minigame != -1) {
// Finished a minigame
const auto &game = CMgStatic::cGameTable[_minigame];
+ _minigame = -1;
+
AfxGetApp()->removeResources(game._dllName);
PostMessage(WM_COMMAND, IDC_ZOOM);
+ } else if (nGameReturn < 0) {
+ // Restart intro video
+ PostMessage(WM_COMMAND, IDC_PLAY_DEMO_MOVIE);
+
} else {
loadNewDLL(nGameReturn);
}
More information about the Scummvm-git-logs
mailing list