SCUMM: DIG: Fix CTRL-B easter egg not working

This fixes #15064. The CTRL-B combination was used in COMI to
regulate the buffer count for iMUSE, so I originally decided to extend
it to SCUMM v7 games. Unfortunately DIG uses this combination for
an easter egg, so the iMUSE buffer function is now available through
SHIFT-B for this game.
This commit is contained in:
AndywinXp 2024-05-19 20:26:50 +02:00
parent 094865344e
commit e18e0a4da1

View File

@ -547,7 +547,7 @@ void ScummEngine_v8::processKeyboard(Common::KeyState lastKeyHit) {
void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
if (isUsingOriginalGUI()) {
if (lastKeyHit.keycode == Common::KEYCODE_b &&
(lastKeyHit.hasFlags(Common::KBD_CTRL) || lastKeyHit.hasFlags(Common::KBD_SHIFT))) {
((lastKeyHit.hasFlags(Common::KBD_CTRL) && _game.id != GID_DIG) || lastKeyHit.hasFlags(Common::KBD_SHIFT))) {
int curBufferCount = _imuseDigital->roundRobinSetBufferCount();
// "iMuse buffer count changed to %d"
showBannerAndPause(0, 90, getGUIString(gsIMuseBuffer), curBufferCount);