[Scummvm-cvs-logs] scummvm master -> 0155e88d1054301dd2dcbd4d63c1c67f0e9e0f65

digitall digitall at scummvm.org
Tue Dec 27 05:42:11 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0155e88d10 DREAMWEB: Move kRoomssample out of data blob.


Commit: 0155e88d1054301dd2dcbd4d63c1c67f0e9e0f65
    https://github.com/scummvm/scummvm/commit/0155e88d1054301dd2dcbd4d63c1c67f0e9e0f65
Author: D G Turner (digitall at scummvm.org)
Date: 2011-12-26T20:39:50-08:00

Commit Message:
DREAMWEB: Move kRoomssample out of data blob.

N.B. Last commit was kForeignRelease, not kSubtitles.

Changed paths:
    devtools/tasmrecover/tasm-recover
    engines/dreamweb/dreambase.h
    engines/dreamweb/dreamgen.cpp
    engines/dreamweb/dreamgen.h
    engines/dreamweb/saveload.cpp
    engines/dreamweb/sound.cpp
    engines/dreamweb/stubs.cpp
    engines/dreamweb/titles.cpp



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index a8abb4f..d5db8b0 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -138,6 +138,7 @@ p = parser(skip_binary_data = [
 	'currentframe',
 	'takeoff',
 	'reelpointer',
+	'roomssample',
 	'needsoundbuff',
 	'oldint8seg',
 	'oldint8add',
diff --git a/engines/dreamweb/dreambase.h b/engines/dreamweb/dreambase.h
index c9bb2df..14e3349 100644
--- a/engines/dreamweb/dreambase.h
+++ b/engines/dreamweb/dreambase.h
@@ -118,6 +118,8 @@ public:
 	bool _subtitles;
 	bool _foreignRelease;
 
+	uint8 _roomsSample;
+
 	// from backdrop.cpp
 	void doBlocks();
 	uint8 getXAd(const uint8 *setData, uint8 *result);
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 331122e..7c4d9ba 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -75,7 +75,7 @@ void DreamGenContext::__start() {
 		//0x0150: .... .... .... ....
 		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
 		//0x0160: .... .... .... ....
-		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, };
+		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, };
 	ds.assign(src, src + sizeof(src));
 	dreamweb(); 
 }
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 5a0100d..65293fa 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -306,7 +306,6 @@ static const uint16 kCh0repeat = 373;
 static const uint16 kCh1playing = 374;
 static const uint16 kCh1blockstocopy = 375;
 static const uint16 kCurrentsample = 377;
-static const uint16 kRoomssample = 378;
 static const uint16 kBlocktextdat = (0);
 static const uint16 kPersonframes = (0);
 static const uint16 kDebuglevel1 = (0);
diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp
index 525c48e..159f886 100644
--- a/engines/dreamweb/saveload.cpp
+++ b/engines/dreamweb/saveload.cpp
@@ -440,7 +440,7 @@ void DreamBase::savePosition(unsigned int slot, const char *descbuf) {
 	const Room &currentRoom = g_roomData[data.byte(kLocation)];
 
 	Room madeUpRoom = currentRoom;
-	madeUpRoom.roomsSample = data.byte(kRoomssample);
+	madeUpRoom.roomsSample = _roomsSample;
 	madeUpRoom.mapX = data.byte(kMapx);
 	madeUpRoom.mapY = data.byte(kMapy);
 	madeUpRoom.liftFlag = data.byte(kLiftflag);
diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp
index 289bca9..8348219 100644
--- a/engines/dreamweb/sound.cpp
+++ b/engines/dreamweb/sound.cpp
@@ -97,7 +97,7 @@ void DreamBase::cancelCh1() {
 }
 
 void DreamBase::loadRoomsSample() {
-	uint8 sample = data.byte(kRoomssample);
+	uint8 sample = _roomsSample;
 
 	if (sample == 255 || data.byte(kCurrentsample) == sample)
 		return; // loaded already
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 6a7516b..8ad7b3d 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1034,7 +1034,7 @@ void DreamBase::clearAndLoad(uint16 seg, uint8 c,
 
 void DreamBase::startLoading(const Room &room) {
 	data.byte(kCombatcount) = 0;
-	data.byte(kRoomssample) = room.roomsSample;
+	_roomsSample = room.roomsSample;
 	data.byte(kMapx) = room.mapX;
 	data.byte(kMapy) = room.mapY;
 	data.byte(kLiftflag) = room.liftFlag;
@@ -3159,7 +3159,7 @@ void DreamBase::showGun() {
 	data.byte(kColourpos) = 0;
 	data.byte(kNumtofade) = 128;
 	hangOn(200);
-	data.byte(kRoomssample) = 34;
+	_roomsSample = 34;
 	loadRoomsSample();
 	data.byte(kVolume) = 0;
 	loadIntoTemp("DREAMWEB.G13");
diff --git a/engines/dreamweb/titles.cpp b/engines/dreamweb/titles.cpp
index a521036..ed54c4b 100644
--- a/engines/dreamweb/titles.cpp
+++ b/engines/dreamweb/titles.cpp
@@ -38,7 +38,7 @@ void DreamBase::endGame() {
 void DreamBase::monkSpeaking() {
 	// FIXME: This is the CD version only.
 
-	data.byte(kRoomssample) = 35;
+	_roomsSample = 35;
 	loadRoomsSample();
 	loadIntoTemp("DREAMWEB.G15");
 	clearWork();
@@ -263,7 +263,7 @@ void DreamBase::set16ColPalette() {
 }
 
 void DreamBase::realCredits() {
-	data.byte(kRoomssample) = 33;
+	_roomsSample = 33;
 	loadRoomsSample();
 	data.byte(kVolume) = 0;
 






More information about the Scummvm-git-logs mailing list