From 5ee7a44cf65ed0519f3859bfe9e77643acc67004 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sun, 5 Dec 2010 23:02:12 +0000 Subject: MOHAWK: fix kLBNotifyChangeMode where there's no mode change svn-id: r54795 --- engines/mohawk/livingbooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/mohawk') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index d534155315..a556381f7e 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -1041,7 +1041,11 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) { debug(2, "kLBNotifyChangeMode: %d", event.param); quitGame(); } else { + debug(2, "kLBNotifyChangeMode: mode %d, page %d.%d", + event.newMode, event.newPage, event.newSubpage); // TODO: what is entry.newUnknown? + if (!event.newMode) + event.newMode = _curMode; if (!loadPage((LBMode)event.newMode, event.newPage, event.newSubpage)) error("kLBNotifyChangeMode failed to move to mode %d, page %d.%d", event.newMode, event.newPage, event.newSubpage); -- cgit v1.2.3