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:
athrxx 2020-11-05 01:32:42 +01:00
parent 5c8f6507ef
commit 4a6b2b1897

View File

@ -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;
}
}