aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-01 23:41:57 -0400
committerPaul Gilbert2014-06-01 23:41:57 -0400
commit82b56efc42b8f7596f5de783c7ea3ce45562757d (patch)
treeaf4643266151b83560ac8b1b2180b210419f52c2 /engines
parent05830e43ee0491c25b8a3f8c864499658dcf7c0a (diff)
downloadscummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.tar.gz
scummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.tar.bz2
scummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.zip
MADS: Fix for dialog when getting vase
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index d8a85d472d..83369f5b94 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -421,6 +421,8 @@ void PictureDialog::save() {
// Get the inventory frame, and adjust the dialog position to allow for it
MSprite *frame = asset->getFrame(0);
_position.y = frame->h + 12;
+ if ((_position.y + _height) > _vm->_screen.getHeight())
+ _position.y -= (_position.y + _height) - _vm->_screen.getHeight();
// Draw the inventory picture
frame->copyTo(&_vm->_screen, Common::Point(160 - frame->w / 2, 6),