aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/talk.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-27 22:21:43 +0100
committerWillem Jan Palenstijn2011-12-27 23:03:40 +0100
commitd9aed2e00bbb2dc54eb741affc1d978068175c04 (patch)
treeafc3639743a2bf3e10b6459fefc4fa2ef2adbe90 /engines/dreamweb/talk.cpp
parenta7cdc342b36bce68e5cdabf6a682e38ea1b21e7b (diff)
downloadscummvm-rg350-d9aed2e00bbb2dc54eb741affc1d978068175c04.tar.gz
scummvm-rg350-d9aed2e00bbb2dc54eb741affc1d978068175c04.tar.bz2
scummvm-rg350-d9aed2e00bbb2dc54eb741affc1d978068175c04.zip
DREAMWEB: Convert room text into TextFiles
Diffstat (limited to 'engines/dreamweb/talk.cpp')
-rw-r--r--engines/dreamweb/talk.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/dreamweb/talk.cpp b/engines/dreamweb/talk.cpp
index 172a61fad1..d27d920891 100644
--- a/engines/dreamweb/talk.cpp
+++ b/engines/dreamweb/talk.cpp
@@ -81,7 +81,7 @@ void DreamBase::convIcons() {
}
uint16 DreamBase::getPersFrame(uint8 index) {
- return getSegment(data.word(kPeople)).word(kPersonframes + index * 2);
+ return READ_LE_UINT16(&_personFramesLE[index]);
}
void DreamBase::startTalk() {
@@ -108,8 +108,7 @@ void DreamBase::startTalk() {
}
const uint8 *DreamBase::getPersonText(uint8 index, uint8 talkPos) {
- uint16 offset = kPersontext + getSegment(data.word(kPeople)).word(((index * 64 + talkPos) * 2) + kPersontxtdat);
- return getSegment(data.word(kPeople)).ptr(offset, 0);
+ return (const uint8 *)_personText.getString(index*64 + talkPos);
}
void DreamBase::moreTalk() {