mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 21:21:05 +00:00
SAGA: Added sanity checks for speech box coordinates, like the original. Now, there won't be missing subtitles in certain scenes
svn-id: r27397
This commit is contained in:
parent
99c65ce24d
commit
585e0781dd
@ -1213,7 +1213,10 @@ void Actor::handleSpeech(int msec) {
|
||||
}
|
||||
|
||||
height2 = actor->_screenPosition.y - 50;
|
||||
_activeSpeech.speechBox.top = _activeSpeech.drawRect.top = MAX(10, (height2 - height) / 2);
|
||||
if (height2 > _vm->_scene->getHeight())
|
||||
_activeSpeech.speechBox.top = _activeSpeech.drawRect.top = _vm->_scene->getHeight() - 1 - height - 10;
|
||||
else
|
||||
_activeSpeech.speechBox.top = _activeSpeech.drawRect.top = MAX(10, (height2 - height) / 2);
|
||||
} else {
|
||||
_activeSpeech.drawRect.left = _activeSpeech.speechBox.left;
|
||||
_activeSpeech.drawRect.top = _activeSpeech.speechBox.top + (_activeSpeech.speechBox.height() - height) / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user