diff options
author | Filippos Karapetis | 2011-12-27 10:16:06 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-27 10:16:06 +0200 |
commit | bda312b61b2fa4ce8c7e728f3bf0f603fd839e3d (patch) | |
tree | a8cb308cacd0cce118c4600c3231d6b073f8a24d /engines/dreamweb | |
parent | e63baf15211dd7c1026fd570d0220984dbfdc8eb (diff) | |
download | scummvm-rg350-bda312b61b2fa4ce8c7e728f3bf0f603fd839e3d.tar.gz scummvm-rg350-bda312b61b2fa4ce8c7e728f3bf0f603fd839e3d.tar.bz2 scummvm-rg350-bda312b61b2fa4ce8c7e728f3bf0f603fd839e3d.zip |
DREAMWEB: Remove more unused/unnecessary variables
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 4 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 8 | ||||
-rw-r--r-- | engines/dreamweb/sound.cpp | 5 | ||||
-rw-r--r-- | engines/dreamweb/sprite.cpp | 2 | ||||
-rw-r--r-- | engines/dreamweb/structs.h | 8 |
5 files changed, 10 insertions, 17 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index ad4b505289..f3b9851db6 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -73,9 +73,9 @@ void DreamGenContext::__start() { //0x0140: .... .... .... .... 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0150: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, //0x0160: .... .... .... .... - 0x00, 0xff, 0x00, 0x00, }; + }; ds.assign(src, src + sizeof(src)); dreamweb(); } diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index b217b4e683..e5887c7fde 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -297,11 +297,9 @@ static const uint16 kLineendy = 360; static const uint16 kLinepointer = 362; static const uint16 kLinedirection = 363; static const uint16 kLinelength = 364; -static const uint16 kCh0blockstocopy = 365; -static const uint16 kCh0playing = 367; -static const uint16 kCh0repeat = 368; -static const uint16 kCh1playing = 369; -static const uint16 kCh1blockstocopy = 370; +static const uint16 kCh0playing = 365; +static const uint16 kCh0repeat = 366; +static const uint16 kCh1playing = 367; static const uint16 kBlocktextdat = (0); static const uint16 kPersonframes = (0); static const uint16 kDebuglevel1 = (0); diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp index e99c7daa43..23a12c2b30 100644 --- a/engines/dreamweb/sound.cpp +++ b/engines/dreamweb/sound.cpp @@ -65,7 +65,6 @@ void DreamBase::playChannel0(uint8 index, uint8 repeat) { soundBank = (Sound *)getSegment(data.word(kSounddata)).ptr(0, 0); data.byte(kCh0repeat) = repeat; - data.word(kCh0blockstocopy) = soundBank[index].blockCount(); } void DreamBase::playChannel1(uint8 index) { @@ -79,19 +78,15 @@ void DreamBase::playChannel1(uint8 index) { index -= 12; } else soundBank = (Sound *)getSegment(data.word(kSounddata)).ptr(0, 0); - - data.word(kCh1blockstocopy) = soundBank[index].blockCount(); } void DreamBase::cancelCh0() { data.byte(kCh0repeat) = 0; - data.word(kCh0blockstocopy) = 0; data.byte(kCh0playing) = 255; engine->stopSound(0); } void DreamBase::cancelCh1() { - data.word(kCh1blockstocopy) = 0; data.byte(kCh1playing) = 255; engine->stopSound(1); } diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp index bc2fc60b32..2cb57bd324 100644 --- a/engines/dreamweb/sprite.cpp +++ b/engines/dreamweb/sprite.cpp @@ -497,7 +497,7 @@ void DreamBase::showRain() { } } - if (data.word(kCh1blockstocopy) != 0) + if (data.word(kCh1playing) != 255) return; if (data.byte(kReallocation) == 2 && data.byte(kBeenmugged) != 1) return; diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h index fdc84536c0..7a9db54051 100644 --- a/engines/dreamweb/structs.h +++ b/engines/dreamweb/structs.h @@ -244,10 +244,10 @@ struct Sound { uint8 w1_hi; uint16 offset() const { return READ_LE_UINT16(&w1_lo); } void setOffset(uint16 v) { WRITE_LE_UINT16(&w1_lo, v); } - uint8 w3_lo; - uint8 w3_hi; - uint16 blockCount() const { return READ_LE_UINT16(&w3_lo); } - void setBlockCount(uint16 v) { WRITE_LE_UINT16(&w3_lo, v); } + uint8 w3_lo; // block count (low byte) - unused in ScummVM + uint8 w3_hi; // block count (high byte) - unused in ScummVM + //uint16 blockCount() const { return READ_LE_UINT16(&w3_lo); } + //void setBlockCount(uint16 v) { WRITE_LE_UINT16(&w3_lo, v); } uint8 b5; }; |