aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/sound.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-12 10:47:11 +0100
committerWillem Jan Palenstijn2011-12-12 10:47:24 +0100
commitfb7246f3ded3958b0f12657c2d2d238ebac86b34 (patch)
treec5ee39ae87b9811e61b72a2a487128b2aa867fb0 /engines/dreamweb/sound.cpp
parent81ba2f4733aa7250deae8ce8187a4a3c0a10214c (diff)
downloadscummvm-rg350-fb7246f3ded3958b0f12657c2d2d238ebac86b34.tar.gz
scummvm-rg350-fb7246f3ded3958b0f12657c2d2d238ebac86b34.tar.bz2
scummvm-rg350-fb7246f3ded3958b0f12657c2d2d238ebac86b34.zip
DREAMWEB: Convert 'createName'
Diffstat (limited to 'engines/dreamweb/sound.cpp')
-rw-r--r--engines/dreamweb/sound.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp
index fc68a8f996..d27af52fbe 100644
--- a/engines/dreamweb/sound.cpp
+++ b/engines/dreamweb/sound.cpp
@@ -33,9 +33,8 @@ namespace DreamGen {
void DreamGenContext::loadSpeech() {
cancelCh1();
data.byte(kSpeechloaded) = 0;
- createName();
- const char *name = (const char *)data.ptr(di, 13);
- //warning("name = %s", name);
+ Common::String name = Common::String::format("%c%02d%c%04d.RAW", (uint8)dl, (uint8)dh, (uint8)cl, (uint16)ax);
+ //debug("name = %s", name.c_str());
if (engine->loadSpeech(name))
data.byte(kSpeechloaded) = 1;
}