Skip to content

Commit

Permalink
MORTEVIELLE: Little refactoring in fctLook()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Feb 2, 2014
1 parent 2817e38 commit 7945cba
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions engines/mortevielle/actions.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 7945cba

Please sign in to comment.