From 848b2650e9427739b79e8b8c6c46f0501d6c3f18 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 22 Jul 2014 19:07:56 +0200 Subject: CGE2: Unstub CommandHandler::runCommand(). --- engines/cge2/snail.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 9dce4dbbc8..f6c6e2d71f 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -72,7 +72,13 @@ void CommandHandler::runCommand() { return; else { ++_vm->_soundStat._ref[0]; - warning("STUB: CommandHandler::runCommand() - Sound code missing!"); + if (_vm->_fx->exist(_vm->_soundStat._ref[1], _vm->_soundStat._ref[0])) { + int16 oldRepeat = _vm->_sound->getRepeat(); + _vm->_sound->setRepeat(1); + _vm->_sound->play(_vm->_fx->load(_vm->_soundStat._ref[1], _vm->_soundStat._ref[0]), _vm->_sound->_smpinf._span); + _vm->_sound->setRepeat(oldRepeat); + return; + } _vm->_soundStat._wait = nullptr; } } -- cgit v1.2.3