aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/closing.cpp
diff options
context:
space:
mode:
authorStrangerke2013-09-19 19:04:01 +0200
committerStrangerke2013-09-19 19:04:01 +0200
commit035604091017142b59dc317dd8d2ad9320610da8 (patch)
treefb80418b87baf0b06d4619d00fb2708b432df2bd /engines/avalanche/closing.cpp
parent2238db712cf45d1b82d51fcbf31098d6ce9d6da8 (diff)
downloadscummvm-rg350-035604091017142b59dc317dd8d2ad9320610da8.tar.gz
scummvm-rg350-035604091017142b59dc317dd8d2ad9320610da8.tar.bz2
scummvm-rg350-035604091017142b59dc317dd8d2ad9320610da8.zip
AVALANCHE: Remove some STUBs, add calls to stopSound()
Diffstat (limited to 'engines/avalanche/closing.cpp')
-rw-r--r--engines/avalanche/closing.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index df53bc38b9..900000d8bc 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -68,13 +68,12 @@ void Closing::exitGame() {
"ignore", "stare at", "shriek at", "frighten", "quieten"
};
- Common::String result;
-
- //nosound();
- warning("STUB: Closing::exitGame()");
+ _vm->_sound->stopSound();
getScreen(kScreenNagScreen);
- result = nouns[_vm->_rnd->getRandomNumber(12)] + " will " + verbs[_vm->_rnd->getRandomNumber(12)] + " you";
+ byte nounId = _vm->_rnd->getRandomNumber(12);
+ byte verbId = _vm->_rnd->getRandomNumber(12);
+ Common::String result = nouns[nounId] + " will " + verbs[verbId] + " you";
putIn(result, 1628);
showScreen(); // No halt- it's already set up.
}