diff options
author | Nipun Garg | 2019-07-03 21:39:24 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:09 +0200 |
commit | e1d69ed3893a2ea67d238c2f09d49b181765ab46 (patch) | |
tree | 0341a1e313398ecfd9309878b26b91d13fe2877b | |
parent | c2c639cfc4de7860cf014f91edbc376513b86443 (diff) | |
download | scummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.tar.gz scummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.tar.bz2 scummvm-rg350-e1d69ed3893a2ea67d238c2f09d49b181765ab46.zip |
HDB: Add Touchplate functions
-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) { |