diff options
author | Paul Gilbert | 2014-06-01 23:41:57 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-06-01 23:41:57 -0400 |
commit | 82b56efc42b8f7596f5de783c7ea3ce45562757d (patch) | |
tree | af4643266151b83560ac8b1b2180b210419f52c2 /engines/mads | |
parent | 05830e43ee0491c25b8a3f8c864499658dcf7c0a (diff) | |
download | scummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.tar.gz scummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.tar.bz2 scummvm-rg350-82b56efc42b8f7596f5de783c7ea3ce45562757d.zip |
MADS: Fix for dialog when getting vase
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 2 |
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), |