From 18fe4cebe4ce54ae48d4834e9e791710610826a3 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 7 Aug 2017 21:26:57 +0200 Subject: MOHAWK: Riven: Trigger the try to open the back rotating room door When using keyboard navigation --- engines/mohawk/riven_card.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/mohawk/riven_card.cpp b/engines/mohawk/riven_card.cpp index bb7f617178..3aab79d82f 100644 --- a/engines/mohawk/riven_card.cpp +++ b/engines/mohawk/riven_card.cpp @@ -828,10 +828,16 @@ void RivenHotspot::applyPropertiesPatches(uint32 cardGlobalId) { // change the name of the hotspot to look at the bottom of the door to // "down" instead of "forwardleft". That way the keyboard navigation // does not spoil that you can go below the door. + // Also make sure the forward keyboard action plays the try to open + // door animation. if (cardGlobalId == 0x87ac && _blstID == 10) { _nameResource = _vm->getStack()->getIdFromName(kHotspotNames, "down"); debugC(kRivenDebugPatches, "Applied change hotspot name to 'down' patch to card %x", cardGlobalId); } + if (cardGlobalId == 0x87ac && _blstID == 12) { + _nameResource = _vm->getStack()->getIdFromName(kHotspotNames, "opendoor"); + debugC(kRivenDebugPatches, "Applied change hotspot name to 'opendoor' patch to card %x", cardGlobalId); + } } void RivenHotspot::applyScriptPatches(uint32 cardGlobalId) { -- cgit v1.2.3