aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/gui.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-01-30 23:03:07 +0000
committerPaul Gilbert2010-01-30 23:03:07 +0000
commit3d1a43bc5486de8d65b72a5385719e370f159298 (patch)
treecbd6ba0ace5b280f13697caa02dd32f4ad220f09 /engines/m4/gui.cpp
parent676bebe2be5d7cd685feb29059997f2a4b4f4442 (diff)
downloadscummvm-rg350-3d1a43bc5486de8d65b72a5385719e370f159298.tar.gz
scummvm-rg350-3d1a43bc5486de8d65b72a5385719e370f159298.tar.bz2
scummvm-rg350-3d1a43bc5486de8d65b72a5385719e370f159298.zip
Worked on separating scene logic into separate classes for M4 and MADS
svn-id: r47728
Diffstat (limited to 'engines/m4/gui.cpp')
-rw-r--r--engines/m4/gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/m4/gui.cpp b/engines/m4/gui.cpp
index abdf0c8e53..8f949de9c5 100644
--- a/engines/m4/gui.cpp
+++ b/engines/m4/gui.cpp
@@ -1191,7 +1191,8 @@ bool GUIButton::onEvent(M4EventType eventType, int32 param, int x, int y, GUIObj
_buttonState = BUTTON_PRESSED;
}
- _madsVm->_globals->invSuppressClickSound = false;
+ if (_vm->isM4())
+ _m4Vm->globals()->invSuppressClickSound = false;
} else {
// Button isn't pressed
if (_tracking)