diff options
author | Willem Jan Palenstijn | 2006-05-31 19:55:54 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2006-05-31 19:55:54 +0000 |
commit | 9644171a7b323c48d80475f82a76be1d4c0e4d5d (patch) | |
tree | 4d12b69384a47d924b06bf172ffb08f6b33a9076 /engines | |
parent | 44d48ed5941918927d271dad0e742941b7f94a8e (diff) | |
download | scummvm-rg350-9644171a7b323c48d80475f82a76be1d4c0e4d5d.tar.gz scummvm-rg350-9644171a7b323c48d80475f82a76be1d4c0e4d5d.tar.bz2 scummvm-rg350-9644171a7b323c48d80475f82a76be1d4c0e4d5d.zip |
Don't let blocking rectangle extend below baseline (see Sarien bugs 810331 and 925074)
svn-id: r22808
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/sprite.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp index 9cf18f22a0..99f9d6e0a4 100644 --- a/engines/agi/sprite.cpp +++ b/engines/agi/sprite.cpp @@ -682,6 +682,9 @@ void SpritesMan::add_to_pic(int view, int loop, int cel, int x, int y, int pri, */ y3 = (y2 / 12) * 12 + 1; + // don't let box extend below y. + if (y3 > y2) y3 = y2; + p1 = &game.sbuf[x1 + y3 * _WIDTH]; p2 = &game.sbuf[x2 + y3 * _WIDTH]; |