diff options
author | lukaslw | 2014-06-19 16:00:11 +0200 |
---|---|---|
committer | lukaslw | 2014-06-22 20:09:19 +0200 |
commit | 1ca309f50ac955c14e7d24328632934fae25b4c8 (patch) | |
tree | ac0620d87fbcd658c4e0c738ba82a1992a340268 /engines/prince/prince.cpp | |
parent | daf91dcf74e63e7f38ce2d794cf51f36e52387dd (diff) | |
download | scummvm-rg350-1ca309f50ac955c14e7d24328632934fae25b4c8.tar.gz scummvm-rg350-1ca309f50ac955c14e7d24328632934fae25b4c8.tar.bz2 scummvm-rg350-1ca309f50ac955c14e7d24328632934fae25b4c8.zip |
PRINCE: Voice sample for options Open/Push, Close/Pull in inventory
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r-- | engines/prince/prince.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index ae07bebfad..003b957822 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -1719,13 +1719,13 @@ void PrinceEngine::inventoryLeftMouseButton() { //use_item_on_item int invObjUU = _script->scanMobEventsWithItem(_invMobList[_selectedMob - 1]._mask, _script->_scriptInfo.invObjUU, _selectedItem); if (invObjUU == -1) { - int textNr = 11; + int textNr = 11; // "I can't do it." if (_selectedItem == 31 || _invMobList[_selectedMob - 1]._mask == 31) { - textNr = 20; + textNr = 20; // "Nothing is happening." } printAt(0, 216, _variaTxt->getString(textNr), kNormalWidth / 2, 100); - //loadVoice(0, 28, Common::String::format("%05d-00.WAV", text)); - //playSample(28, 0); + loadVoice(0, 28, Common::String::format("%05d-01.WAV", textNr)); + playSample(28, 0); } else { //store_new_pc // storeNewPC(); @@ -1788,13 +1788,13 @@ void PrinceEngine::inventoryLeftMouseButton() { // use_item_on_item int invObjUU = _script->scanMobEventsWithItem(_invMobList[_selectedMob - 1]._mask, _script->_scriptInfo.invObjUU, _selectedItem); if (invObjUU == -1) { - int textNr = 11; + int textNr = 11; // "I can't do it." if (_selectedItem == 31 || _invMobList[_selectedMob - 1]._mask == 31) { - textNr = 20; + textNr = 20; // "Nothing is happening." } printAt(0, 216, _variaTxt->getString(textNr), kNormalWidth / 2, 100); - //loadVoice(0, 28, Common::String::format("%05d-00.WAV", text)); - //playSample(28, 0); + loadVoice(0, 28, Common::String::format("%05d-01.WAV", textNr)); + playSample(28, 0); } else { //store_new_pc // storeNewPC(); |