DREAMWEB: Replace hardcoded constants by their symbolic names

This commit is contained in:
Willem Jan Palenstijn 2011-12-03 18:45:50 +01:00
parent 334784c7ce
commit 94fffc4327
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -325,7 +325,7 @@ void DreamGenContext::dreamweb() {
readSetData();
data.byte(kWongame) = 0;
dx = 1909;
dx = kBasicsample;
loadSample();
setSoundOff();