[Scummvm-cvs-logs] scummvm master -> 89fb830be68e5a2bc50165f89d2ae2882167bf7e
bluegr
md5 at scummvm.org
Wed Dec 28 15:00:35 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
89fb830be6 DREAMWEB: Implemented the floppy version of monkSpeaking()
Commit: 89fb830be68e5a2bc50165f89d2ae2882167bf7e
https://github.com/scummvm/scummvm/commit/89fb830be68e5a2bc50165f89d2ae2882167bf7e
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-28T05:59:58-08:00
Commit Message:
DREAMWEB: Implemented the floppy version of monkSpeaking()
Changed paths:
engines/dreamweb/titles.cpp
diff --git a/engines/dreamweb/titles.cpp b/engines/dreamweb/titles.cpp
index 56e3f95..3b78347 100644
--- a/engines/dreamweb/titles.cpp
+++ b/engines/dreamweb/titles.cpp
@@ -36,8 +36,6 @@ void DreamWebEngine::endGame() {
}
void DreamWebEngine::monkSpeaking() {
- // FIXME: This is the CD version only.
-
_roomsSample = 35;
loadRoomsSample();
loadIntoTemp("DREAMWEB.G15");
@@ -46,19 +44,35 @@ void DreamWebEngine::monkSpeaking() {
workToScreen();
_volume = 7;
_volumeDirection = -1;
- _volumeTo = 5;
+ _volumeTo = isCD() ? 5 : 0;
playChannel0(12, 255);
fadeScreenUps();
hangOn(300);
- for (int i = 40; i <= 48; i++) {
- loadSpeech('T', 83, 'T', i);
-
- playChannel1(50 + 12);
-
- do {
- waitForVSync();
- } while (_channel1Playing != 255);
+ if (isCD()) {
+ for (int i = 40; i <= 48; i++) {
+ loadSpeech('T', 83, 'T', i);
+
+ playChannel1(50 + 12);
+
+ do {
+ waitForVSync();
+ } while (_channel1Playing != 255);
+ }
+ } else {
+ for (int i = 40; i <= 44; i++) {
+ uint8 printResult = 0;
+ const uint8 *string = getTextInFile1(i);
+ uint16 y = 140;
+
+ do {
+ printResult = printDirect(&string, 36, &y, 239, 239 & 1);
+ workToScreen();
+ clearWork();
+ showFrame(_tempGraphics, 160, 72, 0, 128); // show monk
+ hangOnP(240);
+ } while (printResult != 0);
+ }
}
_volumeDirection = 1;
More information about the Scummvm-git-logs
mailing list