From e1d69ed3893a2ea67d238c2f09d49b181765ab46 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 3 Jul 2019 21:39:24 +0530 Subject: HDB: Add Touchplate functions --- engines/hdb/ai-use.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engines/hdb/ai-use.cpp b/engines/hdb/ai-use.cpp index e2b3f9ae11..bca73155d8 100644 --- a/engines/hdb/ai-use.cpp +++ b/engines/hdb/ai-use.cpp @@ -226,12 +226,14 @@ bool AI::useCellHolder(AIEntity *e, int x, int y, int targetX, int targetY) { // Touchplate bool AI::useTouchplate(AIEntity *e, int x, int y, int targetX, int targetY, int type) { - warning("STUB: Define useTouchplate"); - return false; + int worked; + g_hdb->_sound->playSound(SND_TOUCHPLATE_CLICK); + return useTarget(x, y, targetX, targetY, type, &worked); } bool AI::useTouchplateOn(AIEntity *e, int x, int y, int targetX, int targetY, int type) { - warning("STUB: Define useTouchplateOn"); - return false; + int worked; + g_hdb->_sound->playSound(SND_TOUCHPLATE_CLICK); + return useTarget(x, y, targetX, targetY, type, &worked); } void callbackDoorOpenClose(int x, int y) { -- cgit v1.2.3