aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/console.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-04 20:26:26 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit1b062d1e39988388468bb13af97276d5674bbcbe (patch)
tree7e329f01236b3c46cda387b5f8b14bccd301d4ca /engines/mohawk/console.cpp
parent2fbe284a311f2eef62126115ddd6d2bb483b3c4b (diff)
downloadscummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.gz
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.bz2
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.zip
MOHAWK: Move the sound lists to RivenCard
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r--engines/mohawk/console.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index 87a0cd4e94..9b4d0564e2 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -450,7 +450,7 @@ bool RivenConsole::Cmd_PlaySound(int argc, const char **argv) {
bool RivenConsole::Cmd_PlaySLST(int argc, const char **argv) {
if (argc < 2) {
- debugPrintf("Usage: playSLST <slst index> <card, default = current>\n");
+ debugPrintf("Usage: playSLST <slst index>\n");
return true;
}
@@ -458,9 +458,7 @@ bool RivenConsole::Cmd_PlaySLST(int argc, const char **argv) {
_vm->_sound->stopSound();
_vm->_sound->stopAllSLST();
- uint16 card = (argc == 3) ? (uint16)atoi(argv[2]) : _vm->getCurCard()->getId();
-
- _vm->_sound->playSLST((uint16)atoi(argv[1]), card);
+ _vm->getCurCard()->playSound((uint16)atoi(argv[1]));
return false;
}