aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-03 18:45:50 +0100
committerWillem Jan Palenstijn2011-12-03 18:48:44 +0100
commit94fffc43277f1088703d4956005a0f0e33f6afd4 (patch)
tree77b123a62b988f16b4489babbb09ec1e09b21fde /engines
parent334784c7ceb8bea9f78e2d27d6da0cfae92c047c (diff)
downloadscummvm-rg350-94fffc43277f1088703d4956005a0f0e33f6afd4.tar.gz
scummvm-rg350-94fffc43277f1088703d4956005a0f0e33f6afd4.tar.bz2
scummvm-rg350-94fffc43277f1088703d4956005a0f0e33f6afd4.zip
DREAMWEB: Replace hardcoded constants by their symbolic names
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamweb.cpp2
-rw-r--r--engines/dreamweb/stubs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 4781647ce1..09e6a15458 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -290,7 +290,7 @@ uint DreamWebEngine::readFromSaveFile(uint8 *data, uint size) {
void DreamWebEngine::keyPressed(uint16 ascii) {
debug(2, "key pressed = %04x", ascii);
- uint8* keybuf = _context.data.ptr(5912, 16); //fixme: some hardcoded offsets are not added as consts
+ uint8* keybuf = _context.data.ptr(DreamGen::DreamGenContext::offset_keybuffer, 16);
uint16 in = (_context.data.word(DreamGen::DreamGenContext::kBufferin) + 1) & 0x0f;
uint16 out = _context.data.word(DreamGen::DreamGenContext::kBufferout);
if (in == out) {
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index af2f608571..230e885270 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -325,7 +325,7 @@ void DreamGenContext::dreamweb() {
readSetData();
data.byte(kWongame) = 0;
- dx = 1909;
+ dx = kBasicsample;
loadSample();
setSoundOff();