diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-use.cpp | 10 |
1 files 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) { |