diff options
| -rw-r--r-- | engines/dreamweb/dreambase.h | 43 | ||||
| -rw-r--r-- | engines/dreamweb/keypad.cpp | 2 | ||||
| -rw-r--r-- | engines/dreamweb/sprite.cpp | 70 | ||||
| -rw-r--r-- | engines/dreamweb/stubs.cpp | 35 | ||||
| -rw-r--r-- | engines/dreamweb/stubs.h | 44 | ||||
| -rw-r--r-- | engines/dreamweb/use.cpp | 10 | 
6 files changed, 91 insertions, 113 deletions
diff --git a/engines/dreamweb/dreambase.h b/engines/dreamweb/dreambase.h index 6ecf94d513..4856ae0487 100644 --- a/engines/dreamweb/dreambase.h +++ b/engines/dreamweb/dreambase.h @@ -165,13 +165,41 @@ public:  	// from sprite.cpp  	Sprite *spriteTable(); +	void printSprites(); +	void printASprite(const Sprite *sprite); +	void clearSprites(); +	Sprite *makeSprite(uint8 x, uint8 y, uint16 updateCallback, uint16 frameData, uint16 somethingInDi); +	void initMan(); +	void walking(Sprite *sprite); +	void aboutTurn(Sprite *sprite); +	void backObject(Sprite *sprite); +	void constant(Sprite *sprite, SetObject *objData); +	void randomSprite(Sprite *sprite, SetObject *objData); +	void doorway(Sprite *sprite, SetObject *objData); +	void wideDoor(Sprite *sprite, SetObject *objData); +	void doDoor(Sprite *sprite, SetObject *objData, Common::Rect check); +	void steady(Sprite *sprite, SetObject *objData); +	void lockedDoorway(Sprite *sprite, SetObject *objData); +	void liftSprite(Sprite *sprite, SetObject *objData); +  	Reel *getReelStart(uint16 reelPointer);  	const Frame *findSource(uint16 &frame);  	void showReelFrame(Reel *reel); +	void showGameReel(ReelRoutine *routine);  	const Frame *getReelFrameAX(uint16 frame); +	void moveMap(uint8 param); +	void checkOne(uint8 x, uint8 y, uint8 *flag, uint8 *flagEx, uint8 *type, uint8 *flagX, uint8 *flagY); + +	uint8 getBlockOfPixel(uint8 x, uint8 y); +	Rain *splitIntoLines(uint8 x, uint8 y, Rain *rain); +	void initRain(); +  	void rollEndCredits(); +	void monks2text(); +	void textForEnd(); +	void textForMonkHelper(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount); +	void textForMonk();  	void priestText(ReelRoutine &routine); -	void checkOne(uint8 x, uint8 y, uint8 *flag, uint8 *flagEx, uint8 *type, uint8 *flagX, uint8 *flagY);  	void soundOnReels(uint16 reelPointer);  	void clearBeforeLoad();  	void clearReels(); @@ -179,6 +207,7 @@ public:  	void liftNoise(uint8 index);  	// from stubs.cpp +	bool isCD();  	void crosshair();  	void delTextLine();  	void showBlink(); @@ -187,6 +216,8 @@ public:  	void showPointer();  	void delPointer();  	void showRyanPage(); +	void switchRyanOn(); +	void switchRyanOff();  	Frame *tempGraphics();  	Frame *tempGraphics2();  	Frame *tempGraphics3(); @@ -215,6 +246,7 @@ public:  	void *getAnyAd(uint8 *value1, uint8 *value2);  	const uint8 *getTextInFile1(uint16 index);  	uint8 findNextColon(const uint8 **string); +	void allocateBuffers();  	uint16 allocateMem(uint16 paragraphs);  	void deallocateMem(uint16 segment);  	uint16 allocateAndLoad(unsigned int size); @@ -282,6 +314,15 @@ public:  	void removeSetObject(uint8 index);  	bool isSetObOnMap(uint8 index);  	void dumpZoom(); +	void diaryKeyP(); +	void diaryKeyN(); +	void findRoomInLoc(); +	void loadMenu(); +	void showMenu(); +	void dumpMenu(); +	void dealWithSpecial(uint8 firstParam, uint8 secondParam); +	void plotReel(uint16 &reelPointer); +	void setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount);  	// from use.cpp  	void placeFreeObject(uint8 index); diff --git a/engines/dreamweb/keypad.cpp b/engines/dreamweb/keypad.cpp index 032f01873e..43f6749cad 100644 --- a/engines/dreamweb/keypad.cpp +++ b/engines/dreamweb/keypad.cpp @@ -106,7 +106,7 @@ void DreamGenContext::enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8  		{ kKeypadx+9,kKeypadx+30,kKeypady+59,kKeypady+73,&DreamBase::buttonNought },  		{ kKeypadx+31,kKeypadx+74,kKeypady+59,kKeypady+73,&DreamBase::buttonEnter },  		{ kKeypadx+72,kKeypadx+86,kKeypady+80,kKeypady+94,&DreamBase::quitKey }, -		{ 0,320,0,200,&DreamGenContext::blank }, +		{ 0,320,0,200,&DreamBase::blank },  		{ 0xFFFF,0,0,0,0 }  	}; diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp index d82d0f19fc..99b12d1bc8 100644 --- a/engines/dreamweb/sprite.cpp +++ b/engines/dreamweb/sprite.cpp @@ -29,7 +29,7 @@ Sprite *DreamBase::spriteTable() {  	return sprite;  } -void DreamGenContext::printSprites() { +void DreamBase::printSprites() {  	for (size_t priority = 0; priority < 7; ++priority) {  		Sprite *sprites = spriteTable();  		for (size_t j = 0; j < 16; ++j) { @@ -45,7 +45,7 @@ void DreamGenContext::printSprites() {  	}  } -void DreamGenContext::printASprite(const Sprite *sprite) { +void DreamBase::printASprite(const Sprite *sprite) {  	uint16 x, y;  	if (sprite->y >= 220) {  		y = data.word(kMapady) - (256 - sprite->y); @@ -67,11 +67,11 @@ void DreamGenContext::printASprite(const Sprite *sprite) {  	showFrame((const Frame *)getSegment(sprite->frameData()).ptr(0, 0), x, y, sprite->frameNumber, c);  } -void DreamGenContext::clearSprites() { +void DreamBase::clearSprites() {  	memset(spriteTable(), 0xff, sizeof(Sprite) * 16);  } -Sprite *DreamGenContext::makeSprite(uint8 x, uint8 y, uint16 updateCallback, uint16 frameData, uint16 somethingInDi) { +Sprite *DreamBase::makeSprite(uint8 x, uint8 y, uint16 updateCallback, uint16 frameData, uint16 somethingInDi) {  	Sprite *sprite = spriteTable();  	while (sprite->frameNumber != 0xff) { // NB: No boundchecking in the original code either  		++sprite; @@ -111,17 +111,13 @@ void DreamGenContext::spriteUpdate() {  	}  } -void DreamGenContext::initMan() { +void DreamBase::initMan() {  	Sprite *sprite = makeSprite(data.byte(kRyanx), data.byte(kRyany), addr_mainman, data.word(kMainsprites), 0);  	sprite->priority = 4;  	sprite->speed = 0;  	sprite->walkFrame = 0;  } -void DreamGenContext::mainMan() { -	assert(false); -} -  void DreamGenContext::mainMan(Sprite *sprite) {  	push(es);  	push(ds); @@ -186,7 +182,7 @@ void DreamGenContext::mainMan(Sprite *sprite) {  	es = pop();  } -void DreamGenContext::walking(Sprite *sprite) { +void DreamBase::walking(Sprite *sprite) {  	uint8 comp;  	if (data.byte(kLinedirection) != 0) {  		--data.byte(kLinepointer); @@ -208,14 +204,10 @@ void DreamGenContext::walking(Sprite *sprite) {  		return;  	}  	data.byte(kDestination) = data.byte(kFinaldest); -	push(es); -	push(bx);  	autoSetWalk(); -	bx = pop(); -	es = pop();  } -void DreamGenContext::aboutTurn(Sprite *sprite) { +void DreamBase::aboutTurn(Sprite *sprite) {  	bool incdir = true;  	if (data.byte(kTurndirection) == 1) @@ -249,11 +241,7 @@ void DreamGenContext::aboutTurn(Sprite *sprite) {  	}  } -void DreamGenContext::backObject() { -	assert(false); -} - -void DreamGenContext::backObject(Sprite *sprite) { +void DreamBase::backObject(Sprite *sprite) {  	SetObject *objData = (SetObject *)getSegment(data.word(kSetdat)).ptr(sprite->objData(), 0);  	if (sprite->delay != 0) { @@ -278,7 +266,7 @@ void DreamGenContext::backObject(Sprite *sprite) {  		steady(sprite, objData);  } -void DreamGenContext::constant(Sprite *sprite, SetObject *objData) { +void DreamBase::constant(Sprite *sprite, SetObject *objData) {  	++sprite->animFrame;  	if (objData->frames[sprite->animFrame] == 255) {  		sprite->animFrame = 0; @@ -288,22 +276,22 @@ void DreamGenContext::constant(Sprite *sprite, SetObject *objData) {  	sprite->frameNumber = frame;  } -void DreamGenContext::randomSprite(Sprite *sprite, SetObject *objData) { +void DreamBase::randomSprite(Sprite *sprite, SetObject *objData) {  	uint8 r = engine->randomNumber();  	sprite->frameNumber = objData->frames[r&7];  } -void DreamGenContext::doorway(Sprite *sprite, SetObject *objData) { +void DreamBase::doorway(Sprite *sprite, SetObject *objData) {  	Common::Rect check(-24, -30, 10, 10);  	doDoor(sprite, objData, check);  } -void DreamGenContext::wideDoor(Sprite *sprite, SetObject *objData) { +void DreamBase::wideDoor(Sprite *sprite, SetObject *objData) {  	Common::Rect check(-24, -30, 24, 24);  	doDoor(sprite, objData, check);  } -void DreamGenContext::doDoor(Sprite *sprite, SetObject *objData, Common::Rect check) { +void DreamBase::doDoor(Sprite *sprite, SetObject *objData, Common::Rect check) {  	int ryanx = data.byte(kRyanx);  	int ryany = data.byte(kRyany); @@ -352,13 +340,13 @@ void DreamGenContext::doDoor(Sprite *sprite, SetObject *objData, Common::Rect ch  	}  } -void DreamGenContext::steady(Sprite *sprite, SetObject *objData) { +void DreamBase::steady(Sprite *sprite, SetObject *objData) {  	uint8 frame = objData->frames[0];  	objData->index = frame;  	sprite->frameNumber = frame;  } -void DreamGenContext::lockedDoorway(Sprite *sprite, SetObject *objData) { +void DreamBase::lockedDoorway(Sprite *sprite, SetObject *objData) {  	int ryanx = data.byte(kRyanx);  	int ryany = data.byte(kRyany); @@ -409,13 +397,13 @@ void DreamGenContext::lockedDoorway(Sprite *sprite, SetObject *objData) {  	}  } -void DreamGenContext::liftSprite(Sprite *sprite, SetObject *objData) { +void DreamBase::liftSprite(Sprite *sprite, SetObject *objData) {  	uint8 liftFlag = data.byte(kLiftflag);  	if (liftFlag == 0) { //liftclosed  		turnPathOff(data.byte(kLiftpath));  		if (data.byte(kCounttoopen) != 0) { -			_dec(data.byte(kCounttoopen)); +			data.byte(kCounttoopen)--;  			if (data.byte(kCounttoopen) == 0)  				data.byte(kLiftflag) = 3;  		} @@ -426,7 +414,7 @@ void DreamGenContext::liftSprite(Sprite *sprite, SetObject *objData) {  		turnPathOn(data.byte(kLiftpath));  		if (data.byte(kCounttoclose) != 0) { -			_dec(data.byte(kCounttoclose)); +			data.byte(kCounttoclose)--;  			if (data.byte(kCounttoclose) == 0)  				data.byte(kLiftflag) = 2;  		} @@ -486,7 +474,7 @@ void DreamBase::showReelFrame(Reel *reel) {  	showFrame(base, x, y, frame, 8);  } -void DreamGenContext::showGameReel(ReelRoutine *routine) { +void DreamBase::showGameReel(ReelRoutine *routine) {  	uint16 reelPointer = routine->reelPointer();  	if (reelPointer >= 512)  		return; @@ -545,7 +533,7 @@ void DreamGenContext::showRain() {  	playChannel1(soundIndex);  } -void DreamGenContext::moveMap(uint8 param) { +void DreamBase::moveMap(uint8 param) {  	switch (param) {  	case 32:  		data.byte(kMapy) -= 20; @@ -586,11 +574,7 @@ void DreamBase::checkOne(uint8 x, uint8 y, uint8 *flag, uint8 *flagEx, uint8 *ty  	*type = tileData[2];  } -void DreamGenContext::getBlockOfPixel() { -	al = getBlockOfPixel(cl, ch); -} - -uint8 DreamGenContext::getBlockOfPixel(uint8 x, uint8 y) { +uint8 DreamBase::getBlockOfPixel(uint8 x, uint8 y) {  	uint8 flag, flagEx, type, flagX, flagY;  	checkOne(x + data.word(kMapxstart), y + data.word(kMapystart), &flag, &flagEx, &type, &flagX, &flagY);  	if (flag & 1) @@ -599,7 +583,7 @@ uint8 DreamGenContext::getBlockOfPixel(uint8 x, uint8 y) {  		return type;  } -Rain *DreamGenContext::splitIntoLines(uint8 x, uint8 y, Rain *rain) { +Rain *DreamBase::splitIntoLines(uint8 x, uint8 y, Rain *rain) {  	do {  		// Look for line start  		while (!getBlockOfPixel(x, y)) { @@ -670,7 +654,7 @@ static const RainLocation rainLocationList[] = {  	{ 255,0,0,0 }  }; -void DreamGenContext::initRain() { +void DreamBase::initRain() {  	const RainLocation *r = rainLocationList;  	Rain *rainList = (Rain *)getSegment(data.word(kBuffers)).ptr(kRainlist, 0);  	Rain *rain = rainList; @@ -799,7 +783,7 @@ void DreamBase::rollEndCredits() {  } -void DreamGenContext::monks2text() { +void DreamBase::monks2text() {  	bool isGermanCD = isCD() && engine->getLanguage() == Common::DE_DEU;  	if (data.byte(kIntrocount) == 1) @@ -836,7 +820,7 @@ void DreamGenContext::monks2text() {  		setupTimedTemp(18, 82, 36, 160, 120, 1);  } -void DreamGenContext::textForEnd() { +void DreamBase::textForEnd() {  	if (data.byte(kIntrocount) == 20)  		setupTimedTemp(0, 83, 34, 20, 60, 1);  	else if (data.byte(kIntrocount) == (isCD() ? 50 : 65)) @@ -845,14 +829,14 @@ void DreamGenContext::textForEnd() {  		setupTimedTemp(2, 83, 34, 20, 60, 1);  } -void DreamGenContext::textForMonkHelper(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) { +void DreamBase::textForMonkHelper(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) {  	if (isCD() && data.byte(kCh1playing) != 255)  		data.byte(kIntrocount)--;  	else  		setupTimedTemp(textIndex, voiceIndex, x, y, countToTimed, timeCount);  } -void DreamGenContext::textForMonk() { +void DreamBase::textForMonk() {  	if (data.byte(kIntrocount) == 1)  		textForMonkHelper(19, 82, 68, 154, 120, 1);  	else if (data.byte(kIntrocount) == 5) diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 1c2b70c882..352dec334d 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -732,11 +732,11 @@ void DreamGenContext::startup1() {  	fadeScreenUp();  } -void DreamGenContext::switchRyanOn() { +void DreamBase::switchRyanOn() {  	data.byte(kRyanon) = 255;  } -void DreamGenContext::switchRyanOff() { +void DreamBase::switchRyanOff() {  	data.byte(kRyanon) = 1;  } @@ -916,7 +916,7 @@ void DreamGenContext::useTimedText() {  	data.byte(kNeedtodumptimed) = 1;  } -void DreamGenContext::setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) { +void DreamBase::setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) {  #if 1 // if cd  	if (voiceIndex != 0) {  		if (loadSpeech('T', voiceIndex, 'T', textIndex)) { @@ -1110,7 +1110,6 @@ void DreamGenContext::startLoading(const Room &room) {  	data.byte(kLiftpath) = room.liftPath;  	data.byte(kDoorpath) = room.doorPath;  	data.byte(kLastweapon) = (uint8)-1; -	ah = data.byte(kReallocation);  	data.byte(kReallocation) = room.realLocation;  	loadRoomData(room, false); @@ -1131,14 +1130,12 @@ void DreamGenContext::startLoading(const Room &room) {  	data.byte(kLinepointer) = 254;  	if (room.b27 != 255) {  		data.byte(kManspath) = room.b27; -		push(bx);  		autoSetWalk(); -		bx = pop();  	}  	findXYFromPath();  } -void DreamGenContext::dealWithSpecial(uint8 firstParam, uint8 secondParam) { +void DreamBase::dealWithSpecial(uint8 firstParam, uint8 secondParam) {  	uint8 type = firstParam - 220;  	if (type == 0) {  		placeSetObject(secondParam); @@ -1165,7 +1162,7 @@ void DreamGenContext::dealWithSpecial(uint8 firstParam, uint8 secondParam) {  	}  } -void DreamGenContext::plotReel(uint16 &reelPointer) { +void DreamBase::plotReel(uint16 &reelPointer) {  	Reel *reel = getReelStart(reelPointer);  	while (reel->x >= 220 && reel->x != 255) {  		dealWithSpecial(reel->x, reel->y); @@ -1810,7 +1807,7 @@ bool DreamBase::isItDescribed(const ObjPos *pos) {  	return result != 0;  } -bool DreamGenContext::isCD() { +bool DreamBase::isCD() {  	// The original sources has two codepaths depending if the game is 'if cd' or not  	// This is a hack to guess which version to use with the assumption that if we have a cd version  	// we managed to load the speech. At least it is isolated in this function and can be changed. @@ -2208,7 +2205,7 @@ Frame * DreamBase::tempGraphics3() {  	return (Frame *)getSegment(data.word(kTempgraphics3)).ptr(0, 0);  } -void DreamGenContext::findRoomInLoc() { +void DreamBase::findRoomInLoc() {  	uint8 x = data.byte(kMapx) / 11;  	uint8 y = data.byte(kMapy) / 10;  	uint8 roomNum = y * 6 + x; @@ -2619,7 +2616,7 @@ void DreamGenContext::drawFloor() {  	data.byte(kNewobs) = 0;  } -void DreamGenContext::allocateBuffers() { +void DreamBase::allocateBuffers() {  	data.word(kExtras) = allocateMem(kLengthofextra/16);  	data.word(kMapdata) = allocateMem(kLengthofmap/16);  	data.word(kBuffers) = allocateMem(kLengthofbuffer/16); @@ -2639,19 +2636,19 @@ void DreamBase::workToScreenM() {  	delPointer();  } -void DreamGenContext::loadMenu() { +void DreamBase::loadMenu() {  	loadIntoTemp("DREAMWEB.S02"); // sprite name 3  	loadIntoTemp2("DREAMWEB.G07"); // mon. graphics 2  } -void DreamGenContext::showMenu() { +void DreamBase::showMenu() {  	++data.byte(kMenucount);  	if (data.byte(kMenucount) == 37*2)  		data.byte(kMenucount) = 0;  	showFrame(tempGraphics(), kMenux, kMenuy, data.byte(kMenucount) / 2, 0);  } -void DreamGenContext::dumpMenu() { +void DreamBase::dumpMenu() {  	multiDump(kMenux, kMenuy, 48, 48);  } @@ -3631,7 +3628,7 @@ void DreamGenContext::selectLocation() {  			{ 104,124,4,44,&DreamGenContext::lastDest },  			{ 280,308,4,44,&DreamGenContext::lookAtPlace },  			{ 104,216,138,192,&DreamGenContext::destSelect }, -			{ 273,320,157,198,&DreamGenContext::getBack1 }, +			{ 273,320,157,198,&DreamBase::getBack1 },  			{ 0,320,0,200,&DreamBase::blank },  			{ 0xFFFF,0,0,0,0 }  		}; @@ -3905,7 +3902,7 @@ void DreamGenContext::talk() {  	workToScreenCPP();  	RectWithCallback talkList[] = { -		{ 273,320,157,198,&DreamGenContext::getBack1 }, +		{ 273,320,157,198,&DreamBase::getBack1 },  		{ 240,290,2,44,&DreamGenContext::moreTalk },  		{ 0,320,0,200,&DreamBase::blank },  		{ 0xFFFF,0,0,0,0 } @@ -3984,7 +3981,7 @@ void DreamGenContext::hangOnPQ() {  	data.byte(kGetback) = 0;  	RectWithCallback quitList[] = { -		{ 273,320,157,198,&DreamGenContext::getBack1 }, +		{ 273,320,157,198,&DreamBase::getBack1 },  		{ 0,320,0,200,&DreamBase::blank },  		{ 0xFFFF,0,0,0,0 }  	}; @@ -4068,7 +4065,7 @@ void DreamGenContext::showGun() {  	getRidOfTempText();  } -void DreamGenContext::diaryKeyP() { +void DreamBase::diaryKeyP() {  	if (data.byte(kCommandtype) != 214) {  		data.byte(kCommandtype) = 214;  		commandOnly(23); @@ -4088,7 +4085,7 @@ void DreamGenContext::diaryKeyP() {  		data.byte(kDiarypage) = 11;  } -void DreamGenContext::diaryKeyN() { +void DreamBase::diaryKeyN() {  	if (data.byte(kCommandtype) != 213) {  		data.byte(kCommandtype) = 213;  		commandOnly(23); diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index bed8cec87d..765b689251 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -25,8 +25,6 @@  	void screenUpdate();  	void startup();  	void startup1(); -	void switchRyanOn(); -	void switchRyanOff();  	void saveLoad();  	void hangOnCurs(uint16 frameCount);  	void hangOnCurs(); @@ -43,7 +41,6 @@  	void multiDump(uint16 x, uint16 y, uint8 width, uint8 height) {  		DreamBase::multiDump(x, y, width, height);  	} -	void printSprites();  	void quickQuit();  	void readOneBlock();  	void readCityPic(); @@ -60,7 +57,6 @@  	}  	void useTimedText();  	void dumpTimedText(); -	void setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount);  	void getUnderTimed();  	void putUnderTimed();  	void dumpTextLine(); @@ -72,29 +68,10 @@  	void showFrame(const Frame *frameData, uint16 x, uint16 y, uint16 frameNumber, uint8 effectsFlag) {  		DreamBase::showFrame(frameData, x, y, frameNumber, effectsFlag);  	} -	void printASprite(const Sprite *sprite);  	void width160(); -	void clearSprites(); -	Sprite *makeSprite(uint8 x, uint8 y, uint16 updateCallback, uint16 frameData, uint16 somethingInDi);  	void spriteUpdate(); -	void initMan();  	void mainMan(Sprite *sprite); -	void mainMan(); -	void walking(Sprite *sprite); -	void aboutTurn(Sprite *sprite); -	void backObject(Sprite *sprite); -	void backObject(); -	void constant(Sprite *sprite, SetObject *objData); -	void steady(Sprite *sprite, SetObject *objData); -	void randomSprite(Sprite *sprite, SetObject *objData); -	void doDoor(Sprite *sprite, SetObject *objData, Common::Rect check); -	void doorway(Sprite *sprite, SetObject *objData); -	void wideDoor(Sprite *sprite, SetObject *objData); -	void lockedDoorway(Sprite *sprite, SetObject *objData); -	void liftSprite(Sprite *sprite, SetObject *objData); -	void showGameReel(ReelRoutine *routine);  	void makeBackOb(SetObject *objData); -	void dealWithSpecial(uint8 firstParam, uint8 secondParam);  	void zoom();  	void showRain();  	void commandOnly(); @@ -117,7 +94,6 @@  	void madman(ReelRoutine &routine);  	void madmanText();  	void madMode(); -	void moveMap(uint8 param);  	bool addAlong(const uint8 *mapFlags);  	bool addLength(const uint8 *mapFlags);  	void getDimension(); @@ -150,7 +126,6 @@  	void setAllChanges();  	void doChange(uint8 index, uint8 value, uint8 type);  	void deleteTaken(); -	bool isCD();  	void showAllFree();  	void showAllEx();  	bool finishedWalkingCPP(); @@ -199,8 +174,6 @@  	const uint8 *getObTextStartCPP();  	void useText(const uint8 *string);  	void useText(); -	void getBlockOfPixel(); -	uint8 getBlockOfPixel(uint8 x, uint8 y);  	void examineObText();  	void showCity();  	uint16 getPersFrame(uint8 index); @@ -208,23 +181,14 @@  	void examineOb(bool examineAgain = true);  	void dumpWatch();  	void transferText(); -	void initRain(); -	Rain *splitIntoLines(uint8 x, uint8 y, Rain *rain);  	void watchCount();  	void loadRoom(); -	void textForMonk(); -	void textForMonkHelper(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount); -	void textForEnd(); -	void monks2text();  	void intro1Text();  	void intro2Text();  	void intro3Text();  	void readSetData();  	void fadeupYellows();  	void fadeupMonFirst(); -	void loadMenu(); -	void showMenu(); -	void dumpMenu();  	void useMenu();  	void useMon();  	void makeCaps(); @@ -247,7 +211,6 @@  	void playChannel1(uint8 index) {  		DreamBase::playChannel1(index);  	} -	void findRoomInLoc();  	void reelsOnScreen();  	void reconstruct();  	void look(); @@ -316,7 +279,6 @@  	void nextFolder();  	void lastFolder();  	void drawFloor(); -	void allocateBuffers();  	bool checkSpeed(ReelRoutine &routine);  	void checkSpeed();  	void sparkyDrip(ReelRoutine &routine); @@ -450,10 +412,6 @@  	void showLoadOps();  	void watchReel();  	void showWatchReel(); -	void plotReel(uint16 &reelPointer); -	void removeFreeObject(uint8 index) { -		DreamBase::removeFreeObject(index); -	}  	void afterNewRoom();  	void madmanRun();  	void showDecisions(); @@ -465,8 +423,6 @@  	void hangOnPQ();  	void showGun();  	void endGame(); -	void diaryKeyP(); -	void diaryKeyN();  	void checkInput();  	void dropError();  	void cantDrop(); diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp index b0666bab33..4e956cd016 100644 --- a/engines/dreamweb/use.cpp +++ b/engines/dreamweb/use.cpp @@ -975,7 +975,7 @@ void DreamGenContext::useElvDoor() {  	// Axe on door  	showPuzText(15, 300); -	_inc(data.byte(kProgresspoints)); +	data.byte(kProgresspoints)++;  	data.word(kWatchingtime) = 46 * 2;  	data.word(kReeltowatch) = 31;  	data.word(kEndwatchreel) = 77; @@ -1288,10 +1288,10 @@ void DreamGenContext::useDiary() {  	data.byte(kGetback) = 0;  	RectWithCallback diaryList[] = { -		{ kDiaryx+94,kDiaryx+110,kDiaryy+97,kDiaryy+113,&DreamGenContext::diaryKeyN }, -		{ kDiaryx+151,kDiaryx+167,kDiaryy+71,kDiaryy+87,&DreamGenContext::diaryKeyP }, -		{ kDiaryx+176,kDiaryx+192,kDiaryy+108,kDiaryy+124,&DreamGenContext::quitKey }, -		{ 0,320,0,200,&DreamGenContext::blank }, +		{ kDiaryx+94,kDiaryx+110,kDiaryy+97,kDiaryy+113,&DreamBase::diaryKeyN }, +		{ kDiaryx+151,kDiaryx+167,kDiaryy+71,kDiaryy+87,&DreamBase::diaryKeyP }, +		{ kDiaryx+176,kDiaryx+192,kDiaryy+108,kDiaryy+124,&DreamBase::quitKey }, +		{ 0,320,0,200,&DreamBase::blank },  		{ 0xFFFF,0,0,0,0 }  	};  | 
