diff options
-rw-r--r-- | engines/avalanche/lucerna2.cpp | 2 | ||||
-rw-r--r-- | engines/avalanche/trip6.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index fa1e3db908..29f93c7d42 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -101,7 +101,7 @@ void Lucerna::draw_also_lines() { } _vm->_graphics->_magics.fillRect(Common::Rect(0, 0, 640, 200), 0); - _vm->_graphics->_magics.frameRect(Common::Rect(0, 45, 639, 160), 15); + _vm->_graphics->_magics.frameRect(Common::Rect(0, 45, 639, 161), 15); for (ff = 0; ff < 50; ff++) { if (_vm->_gyro->lines[ff].x1 != 32767 /*maxint*/) { diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp index 2c73bf112d..26530a5cb7 100644 --- a/engines/avalanche/trip6.cpp +++ b/engines/avalanche/trip6.cpp @@ -492,20 +492,19 @@ byte Trip::checkfeet(int16 x1, int16 x2, int16 oy, int16 y, byte yl) { a = 0; //setactivepage(2); - if (x1 < 0) x1 = 0; if (x2 > 639) x2 = 639; if (oy < y) - for (fv = x1; fv <= x2; fv ++) + for (fv = x1; fv <= x2; fv++) for (ff = oy + yl; ff <= y + yl; ff++) { c = *(byte *)_vm->_graphics->_magics.getBasePtr(fv, ff); if (c > a) a = c; } else - for (fv = x1; fv <= x2; fv ++) + for (fv = x1; fv <= x2; fv++) for (ff = y + yl; ff <= oy + yl; ff++) { c = *(byte *)_vm->_graphics->_magics.getBasePtr(fv, ff); if (c > a) |