diff options
author | Paul Gilbert | 2015-01-14 22:10:32 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-14 22:10:32 -0500 |
commit | 7bfbda627a589817022f12b739ff6cc652ccfee5 (patch) | |
tree | 0f9b87e2c37590e00b99c8d706dd08a659be28b2 /engines/xeen/screen.cpp | |
parent | 17f946305cfeeaa03b070510798c79437fe055ef (diff) | |
download | scummvm-rg350-7bfbda627a589817022f12b739ff6cc652ccfee5.tar.gz scummvm-rg350-7bfbda627a589817022f12b739ff6cc652ccfee5.tar.bz2 scummvm-rg350-7bfbda627a589817022f12b739ff6cc652ccfee5.zip |
XEEN: Initial bugfixes for map loading and fix draw list positions
Diffstat (limited to 'engines/xeen/screen.cpp')
-rw-r--r-- | engines/xeen/screen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/screen.cpp b/engines/xeen/screen.cpp index 783f1ffbf4..7b6f972268 100644 --- a/engines/xeen/screen.cpp +++ b/engines/xeen/screen.cpp @@ -275,7 +275,8 @@ void Screen::update() { } void Screen::addDirtyRect(const Common::Rect &r) { - assert(r.isValidRect() && r.width() > 0 && r.height() > 0 + assert(r.isValidRect() && r.width() > 0 && r.height() > 0 + && r.left >= 0 && r.top >= 0 && r.right <= SCREEN_WIDTH && r.bottom <= SCREEN_HEIGHT); _dirtyRects.push_back(r); } |