aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-07-30 23:43:20 +0200
committeruruk2013-07-30 23:43:20 +0200
commit5290eb98797c638276b47b3b53ec6a30e63473dd (patch)
treedf3f4e7988b451776456575abf70d42064cc73bd
parent6ffcb714af5f446826b0c029ebcaed222291e961 (diff)
downloadscummvm-rg350-5290eb98797c638276b47b3b53ec6a30e63473dd.tar.gz
scummvm-rg350-5290eb98797c638276b47b3b53ec6a30e63473dd.tar.bz2
scummvm-rg350-5290eb98797c638276b47b3b53ec6a30e63473dd.zip
AVALANCHE: Repair Lucerna::draw_also_lines().
-rw-r--r--engines/avalanche/lucerna2.cpp2
-rw-r--r--engines/avalanche/trip6.cpp5
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)