mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 05:34:00 +00:00
SAGA: minor fix to horizontal actor text positioning
(seems to be like a typo; fixed from disasm and screen comparison)
This commit is contained in:
parent
5c8f6507ef
commit
4a6b2b1897
@ -1177,11 +1177,11 @@ void Actor::actorSpeech(uint16 actorId, const char **strings, int stringsCount,
|
||||
_activeSpeech.speechBox.right = actor->_screenPosition.x + dist;
|
||||
|
||||
if (_activeSpeech.speechBox.left < 10) {
|
||||
_activeSpeech.speechBox.right += 10 - _activeSpeech.speechBox.left;
|
||||
_activeSpeech.speechBox.right += (10 - _activeSpeech.speechBox.left);
|
||||
_activeSpeech.speechBox.left = 10;
|
||||
}
|
||||
if (_activeSpeech.speechBox.right > _vm->getDisplayInfo().width - 10) {
|
||||
_activeSpeech.speechBox.left -= _activeSpeech.speechBox.right - _vm->getDisplayInfo().width - 10;
|
||||
_activeSpeech.speechBox.left -= _activeSpeech.speechBox.right - (_vm->getDisplayInfo().width - 10);
|
||||
_activeSpeech.speechBox.right = _vm->getDisplayInfo().width - 10;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user