diff options
| author | Bastien Bouclet | 2010-11-29 20:52:33 +0000 | 
|---|---|---|
| committer | Bastien Bouclet | 2010-11-29 20:52:33 +0000 | 
| commit | e26fb921e9ab814b81ba5c496c626e49f03a47a3 (patch) | |
| tree | 8316d6e2509801198a2e6f04ab53d12393d27051 | |
| parent | 200cafd40fe1523aeefa11ddefd0a66bddcf2c05 (diff) | |
| download | scummvm-rg350-e26fb921e9ab814b81ba5c496c626e49f03a47a3.tar.gz scummvm-rg350-e26fb921e9ab814b81ba5c496c626e49f03a47a3.tar.bz2 scummvm-rg350-e26fb921e9ab814b81ba5c496c626e49f03a47a3.zip | |
MOHAWK; Post rebase fixes :
- Restore invoking resource change
- Update the screen after drawing a conditional image
svn-id: r54604
| -rw-r--r-- | engines/mohawk/myst.cpp | 6 | ||||
| -rw-r--r-- | engines/mohawk/myst_areas.cpp | 11 | 
2 files changed, 9 insertions, 8 deletions
| diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index 268d9bb501..448334492c 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -473,14 +473,14 @@ void MohawkEngine_Myst::changeToCard(uint16 card) {  		error("Unknown sound action %d", soundAction);  	} +	// Run the entrance script (if present) +	runInitScript(); +  	// Update the images of each area too  	drawResourceImages();  	// TODO: Handle Script Resources -	// Run the entrance script (if present) -	runInitScript(); -  	// Make sure we have the right cursor showing  	_curResource = -1;  	checkCurrentResource(); diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp index 39f443cf1b..665063403f 100644 --- a/engines/mohawk/myst_areas.cpp +++ b/engines/mohawk/myst_areas.cpp @@ -92,12 +92,12 @@ MystResourceType5::MystResourceType5(MohawkEngine_Myst *vm, Common::SeekableRead  void MystResourceType5::handleMouseUp(Common::Point *mouse) { -//	MystResource *invoking = this; -//	while (invoking->_parent) { -//		invoking = invoking->_parent; -//	} +	MystResource *invoking = this; +	while (invoking->_parent) { +		invoking = invoking->_parent; +	} -	_vm->_scriptParser->runScript(_script, this); +	_vm->_scriptParser->runScript(_script, invoking);  }  // In Myst/Making of Myst, the paths are hardcoded ala Windows style without extension. Convert them. @@ -448,6 +448,7 @@ void MystResourceType8::drawConditionalDataToScreen(uint16 state) {  			imageToDraw = _subImages[subImageId].wdib;  		_vm->_gfx->copyImageSectionToScreen(imageToDraw, _subImages[subImageId].rect, _rect); +		_vm->_gfx->updateScreen();  	}  } | 
