aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-use.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-03 21:39:24 +0530
committerEugene Sandulenko2019-09-03 17:17:09 +0200
commite1d69ed3893a2ea67d238c2f09d49b181765ab46 (patch)
tree0341a1e313398ecfd9309878b26b91d13fe2877b /engines/hdb/ai-use.cpp
parentc2c639cfc4de7860cf014f91edbc376513b86443 (diff)
downloadscummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.tar.gz
scummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.tar.bz2
scummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.zip
HDB: Add Touchplate functions
Diffstat (limited to 'engines/hdb/ai-use.cpp')
-rw-r--r--engines/hdb/ai-use.cpp10
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) {