aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-27 18:34:23 +0100
committerWillem Jan Palenstijn2011-12-27 18:40:25 +0100
commit08be0411b1bfba715d5c1b50b50a893a27e12f8c (patch)
treefb57b47176caf204312ce4ee90ebf67e50c06200 /engines/dreamweb/use.cpp
parentdf7bb24184ea599280640107c19f898c43d74ac3 (diff)
downloadscummvm-rg350-08be0411b1bfba715d5c1b50b50a893a27e12f8c.tar.gz
scummvm-rg350-08be0411b1bfba715d5c1b50b50a893a27e12f8c.tar.bz2
scummvm-rg350-08be0411b1bfba715d5c1b50b50a893a27e12f8c.zip
DREAMWEB: Streamline text file handling
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 280d78ba55..1b91cc8d7b 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -1644,8 +1644,7 @@ void DreamBase::showPuzText(uint16 command, uint16 count) {
showMan();
showExit();
obIcons();
- uint16 offset = kTextstart + getSegment(data.word(kPuzzletext)).word(command * 2);
- const uint8 *string = getSegment(data.word(kPuzzletext)).ptr(offset, 0);
+ const uint8 *string = (const uint8 *)_puzzleText.getString(command);
printDirect(string, 36, 104, 241, 241 & 1);
workToScreenM();
hangOnP(count);