diff options
| author | Strangerke | 2012-10-08 08:00:00 +0200 | 
|---|---|---|
| committer | Strangerke | 2012-10-08 08:00:00 +0200 | 
| commit | e0ca30ad3da63f8dee025244b4ec6d4a719c1258 (patch) | |
| tree | 70f4817de29e5ffdb57e1f212264827ec1c73e53 | |
| parent | 1274c02d1d1dc4c0af156e7f769e9155499b67a1 (diff) | |
| download | scummvm-rg350-e0ca30ad3da63f8dee025244b4ec6d4a719c1258.tar.gz scummvm-rg350-e0ca30ad3da63f8dee025244b4ec6d4a719c1258.tar.bz2 scummvm-rg350-e0ca30ad3da63f8dee025244b4ec6d4a719c1258.zip  | |
MORTEVIELLE: Get rid of some magic values
| -rw-r--r-- | engines/mortevielle/actions.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mortevielle/actions.cpp b/engines/mortevielle/actions.cpp index cf68d7d496..bff5d638ee 100644 --- a/engines/mortevielle/actions.cpp +++ b/engines/mortevielle/actions.cpp @@ -453,7 +453,7 @@ void MortevielleEngine::fctLook() {  		treg(147);  	if ((_coreVar._currPlace == GREEN_ROOM2) && (_num == 3))  		treg(149); -	if ((_coreVar._currPlace == 9) && (_num == 2)) +	if ((_coreVar._currPlace == ROOM9) && (_num == 2))  		treg(30);  	if ((_coreVar._currPlace == DINING_ROOM) && (_num == 3))  		treg(31); @@ -610,7 +610,7 @@ void MortevielleEngine::fctOpen() {  			++tmpPlace;  		} while (!((tmpPlace > 6) || (ord(_touv[tmpPlace]) == 0) || (ord(_touv[tmpPlace]) == _num)));  		if (ord(_touv[tmpPlace]) != _num) { -			if (!( ((_num == 3) && ((_coreVar._currPlace == OWN_ROOM) || (_coreVar._currPlace == 9) || (_coreVar._currPlace == BLUE_ROOM) || (_coreVar._currPlace == BATHROOM))) +			if (!( ((_num == 3) && ((_coreVar._currPlace == OWN_ROOM) || (_coreVar._currPlace == ROOM9) || (_coreVar._currPlace == BLUE_ROOM) || (_coreVar._currPlace == BATHROOM)))  			    || ((_num == 4) && ((_coreVar._currPlace == GREEN_ROOM) || (_coreVar._currPlace == PURPLE_ROOM) || (_coreVar._currPlace == RED_ROOM)))  				|| ((_coreVar._currPlace == DARKBLUE_ROOM) && (_num == 5))  				|| ((_num == 6) && ((_coreVar._currPlace == BATHROOM) || (_coreVar._currPlace == DINING_ROOM) || (_coreVar._currPlace == GREEN_ROOM2) || (_coreVar._currPlace == ATTIC))) @@ -926,7 +926,7 @@ void MortevielleEngine::fctKnock() {  		_speechManager.startSpeech(11, rand, 1);  		int p = getPresenceStats(rand, _coreVar._faithScore, _ment);  		int l = _ment; -		if (l != 0) { +		if (l != OWN_ROOM) {  			if (p != -500) {  				if (rand > p)  					_crep = 190; @@ -938,7 +938,7 @@ void MortevielleEngine::fctKnock() {  				getKnockAnswer();  		} -		if (_ment == 8) +		if (_ment == GREEN_ROOM2)  			_crep = 190;  	}  } @@ -1050,7 +1050,7 @@ void MortevielleEngine::fctListen() {  		int rand;  		int p = getPresenceStats(rand, _coreVar._faithScore, _ment);  		int l = _ment; -		if (l != 0) { +		if (l != OWN_ROOM) {  			if (p != -500) {  				if (rand > p)  					_crep = 101;  | 
