diff options
author | Strangerke | 2014-02-02 11:20:08 +0100 |
---|---|---|
committer | Strangerke | 2014-02-02 11:20:08 +0100 |
commit | 7945cba560876eb6818c30e8b51c7f3118cc0148 (patch) | |
tree | 77641bbe9d541a4c56405fc70b99ebf5be042677 | |
parent | 2817e380079b43be67aad3176369a59963dc6ad4 (diff) | |
download | scummvm-rg350-7945cba560876eb6818c30e8b51c7f3118cc0148.tar.gz scummvm-rg350-7945cba560876eb6818c30e8b51c7f3118cc0148.tar.bz2 scummvm-rg350-7945cba560876eb6818c30e8b51c7f3118cc0148.zip |
MORTEVIELLE: Little refactoring in fctLook()
-rw-r--r-- | engines/mortevielle/actions.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/engines/mortevielle/actions.cpp b/engines/mortevielle/actions.cpp index c5d55066ba..e13220d248 100644 --- a/engines/mortevielle/actions.cpp +++ b/engines/mortevielle/actions.cpp @@ -481,13 +481,24 @@ void MortevielleEngine::fctLook() { } return; } + int cx = _coreVar._currPlace; - if (_coreVar._currPlace == CHAPEL) + switch (_coreVar._currPlace) { + case CHAPEL: cx = 17; - if ((_coreVar._currPlace > MANOR_FRONT) && (_coreVar._currPlace < DOOR)) + break; + case MANOR_BACK: + case INSIDE_WELL: + case WELL: cx -= 4; - if (_coreVar._currPlace == ROOM26) + break; + case ROOM26: cx = 21; + break; + default: + break; + } + _crep = _tabdon[kArega + (cx * 7) + _num - 1]; if ((_coreVar._currPlace == ATTIC) && (_num == 8)) _crep = 126; |