diff options
| author | Bastien Bouclet | 2016-02-14 09:07:12 +0100 | 
|---|---|---|
| committer | Bastien Bouclet | 2016-02-14 09:58:43 +0100 | 
| commit | fe7e58d0d14e83a6a005f95237cb11d6a1119e83 (patch) | |
| tree | 14bda2c321d2658c154c63db8efdaba745a1173e | |
| parent | 1066649c8c9d5d33ff619747b890e73791b91a7f (diff) | |
| download | scummvm-rg350-fe7e58d0d14e83a6a005f95237cb11d6a1119e83.tar.gz scummvm-rg350-fe7e58d0d14e83a6a005f95237cb11d6a1119e83.tar.bz2 scummvm-rg350-fe7e58d0d14e83a6a005f95237cb11d6a1119e83.zip  | |
MOHAWK: Play the handle going up anim when closing the Myst cabin safe
| -rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 6 | ||||
| -rw-r--r-- | engines/mohawk/myst_stacks/myst.h | 1 | 
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 4009d0d1f4..0576bdd2a3 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -50,6 +50,7 @@ Myst::Myst(MohawkEngine_Myst *vm) :  	_libraryBookcaseChanged = false;  	_dockVaultState = 0;  	_cabinDoorOpened = 0; +	_cabinHandleDown = 0;  	_cabinMatchState = 2;  	_matchBurning = false;  	_tree = nullptr; @@ -626,7 +627,7 @@ uint16 Myst::getVar(uint16 var) {  	case 307: // Cabin Boiler Fully Pressurized  		return _state.cabinPilotLightLit == 1 && _state.cabinValvePosition > 12;  	case 308: // Cabin handle position -		return 0; // Not implemented in the original +		return _cabinHandleDown;  	default:  		return MystScriptParser::getVar(var);  	} @@ -764,6 +765,9 @@ bool Myst::setVarValue(uint16 var, uint16 value) {  	case 304: // Myst Library Image Present on Tower Rotation Map  		_towerRotationMapInitialized = value;  		break; +	case 308: // Cabin handle position +		_cabinHandleDown = value; +		break;  	case 309: // Tree stopped  		_treeStopped = value;  		break; diff --git a/engines/mohawk/myst_stacks/myst.h b/engines/mohawk/myst_stacks/myst.h index 5c84cd7f96..9d66b798c5 100644 --- a/engines/mohawk/myst_stacks/myst.h +++ b/engines/mohawk/myst_stacks/myst.h @@ -256,6 +256,7 @@ protected:  	bool _matchBurning;  	uint16 _matchGoOutCnt;  	uint16 _cabinDoorOpened; // 56 +	uint16 _cabinHandleDown; // 344  	uint16 _cabinMatchState; // 60  	uint32 _matchGoOutTime; // 144  | 
