diff options
author | Retro-Junk | 2016-10-01 01:45:40 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-01 00:50:35 +0200 |
commit | f0425d4e94f5e54f9c502a388732fa6e77401814 (patch) | |
tree | 16368bd0f47f1ab1d6c8da43e91f7bbac416041c | |
parent | 5d1ea5db918e15049b52df25075b6540488ed212 (diff) | |
download | scummvm-rg350-f0425d4e94f5e54f9c502a388732fa6e77401814.tar.gz scummvm-rg350-f0425d4e94f5e54f9c502a388732fa6e77401814.tar.bz2 scummvm-rg350-f0425d4e94f5e54f9c502a388732fa6e77401814.zip |
FULLPIPE: Fix bounding box calculation in ReactPolygonal::getBBox
-rw-r--r-- | engines/fullpipe/motion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 51f5ae7869..744032353e 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -3055,13 +3055,13 @@ void ReactPolygonal::getBBox(Common::Rect *rect) { if (rect->left > _points[i]->x) rect->left = _points[i]->x; - if (rect->top < _points[i]->y) + if (rect->top > _points[i]->y) rect->top = _points[i]->y; if (rect->right < _points[i]->x) rect->right = _points[i]->x; - if (rect->bottom > _points[i]->y) + if (rect->bottom < _points[i]->y) rect->bottom = _points[i]->y; } |