aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-10-27 09:06:20 +0000
committerPaweł Kołodziejski2002-10-27 09:06:20 +0000
commit9e0e2fa1d54bcf4ef9dab7a73c93b845fe1bbbaa (patch)
tree6225d0a8f922cf64b6f49aef9f4a7877dfc459fe /scumm
parent9c0959680286936d6e13f778c1f5f98781ae16ba (diff)
downloadscummvm-rg350-9e0e2fa1d54bcf4ef9dab7a73c93b845fe1bbbaa.tar.gz
scummvm-rg350-9e0e2fa1d54bcf4ef9dab7a73c93b845fe1bbbaa.tar.bz2
scummvm-rg350-9e0e2fa1d54bcf4ef9dab7a73c93b845fe1bbbaa.zip
removed hardcoded values and increased range of strips
svn-id: r5329
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;