aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2011-11-01 20:38:22 -0400
committerMatthew Hoops2011-11-01 20:38:22 -0400
commitfaa6018cad43c89c415397112e9fd7ca46fff5da (patch)
tree703db50c0f3b1bc0366db422854688189fe51a83 /engines/pegasus
parente781066cecc5a25794e26a149bf7ea8b16949fbd (diff)
downloadscummvm-rg350-faa6018cad43c89c415397112e9fd7ca46fff5da.tar.gz
scummvm-rg350-faa6018cad43c89c415397112e9fd7ca46fff5da.tar.bz2
scummvm-rg350-faa6018cad43c89c415397112e9fd7ca46fff5da.zip
PEGASUS: Just clip the junk from going off right or bottom too
Diffstat (limited to 'engines/pegasus')
-rwxr-xr-xengines/pegasus/neighborhood/mars/spacejunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/mars/spacejunk.cpp b/engines/pegasus/neighborhood/mars/spacejunk.cpp
index a1f9bf7c37..a751dc2a71 100755
--- a/engines/pegasus/neighborhood/mars/spacejunk.cpp
+++ b/engines/pegasus/neighborhood/mars/spacejunk.cpp
@@ -82,7 +82,7 @@ void SpaceJunk::setCenter(const tCoordType centerX, const tCoordType centerY) {
Common::Rect r;
getBounds(r);
- r.moveTo(MAX<int>(centerX - (r.width() >> 1), 0), MAX<int>(centerY - (r.height() >> 1), 0));
+ r.moveTo(CLIP<int>(centerX - (r.width() >> 1), 0, 640), CLIP<int>(centerY - (r.height() >> 1), 0, 480));
setBounds(r);
}