diff options
author | Strangerke | 2018-04-26 07:09:57 +0200 |
---|---|---|
committer | Strangerke | 2018-04-26 07:10:20 +0200 |
commit | ef1b0171bf206c86c05cb75fafa9bc60f6c6a251 (patch) | |
tree | 2d71cfda80bb328ea3c7addcb4ddcdc57ac44398 /engines/lilliput/lilliput.cpp | |
parent | beeddc8c7e82218ece89e2bc0d76599b38b9730f (diff) | |
download | scummvm-rg350-ef1b0171bf206c86c05cb75fafa9bc60f6c6a251.tar.gz scummvm-rg350-ef1b0171bf206c86c05cb75fafa9bc60f6c6a251.tar.bz2 scummvm-rg350-ef1b0171bf206c86c05cb75fafa9bc60f6c6a251.zip |
LILLIPUT: Fix regression introduced in 56db8c626eb095fc21a4648e7cc79f7ed0bd1260
Diffstat (limited to 'engines/lilliput/lilliput.cpp')
-rw-r--r-- | engines/lilliput/lilliput.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index 88bea2ab71..eb93516bed 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -1423,9 +1423,9 @@ void LilliputEngine::homeInPathFinding(int index) { } if (_enclosureRect[enclosureSrc].bottom != _enclosureRect[enclosureSrc].top) { - if (_portalPos[enclosureSrc].y == _enclosureRect[enclosureSrc].bottom) + if (_portalPos[enclosureSrc].y == _enclosureRect[enclosureSrc].top) _characterSubTargetPos[index] = Common::Point(_portalPos[enclosureSrc].x, _portalPos[enclosureSrc].y - 1); - else // CHECKME: Should be a check on y == top + else // CHECKME: Should be a check on y == bottom _characterSubTargetPos[index] = Common::Point(_portalPos[enclosureSrc].x, _portalPos[enclosureSrc].y + 1); return; @@ -2573,8 +2573,8 @@ void LilliputEngine::loadRules() { for (int i = 0; i < _rectNumb; i++) { _enclosureRect[i].right = (int16)f.readByte(); _enclosureRect[i].left = (int16)f.readByte(); - _enclosureRect[i].top = (int16)f.readByte(); _enclosureRect[i].bottom = (int16)f.readByte(); + _enclosureRect[i].top = (int16)f.readByte(); int16 tmpValY = (int16)f.readByte(); int16 tmpValX = (int16)f.readByte(); |