aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/object.cpp4
-rw-r--r--scumm/script.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index a27ea03f9e..11246ad16c 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -1298,8 +1298,8 @@ void Scumm::removeBlastObject(BlastObject *eo)
if (left_strip < 0)
left_strip = 0;
- if (right_strip >= 200)
- right_strip = 200;
+ if (right_strip >= 240)
+ right_strip = 240;
for (i = left_strip; i <= right_strip; i++)
gdi.resetBackground(top, bottom, i);
diff --git a/scumm/script.cpp b/scumm/script.cpp
index ee3d536183..7d95e4ae4b 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -473,7 +473,7 @@ void Scumm::drawBox(int x, int y, int x2, int y2, int color)
x2++;
y2++;
- if (x > 319)
+ if (x > _realWidth - 1)
return;
if (x < 0)
x = 0;