Fix dangling player name in dialog review

This commit is contained in:
Alexander Batalov 2022-05-20 10:56:04 +03:00
parent 7db7a9afe2
commit 9b40ef4675
1 changed files with 7 additions and 0 deletions

View File

@ -1371,6 +1371,13 @@ void gameDialogReviewWindowUpdate(int win, int origin)
y = gameDialogDrawText(windowBuffer + 113, &entriesRect, replyText, NULL, fontGetLineHeight(), 640, _colorTable[768] | 0x2000000, 1); y = gameDialogDrawText(windowBuffer + 113, &entriesRect, replyText, NULL, fontGetLineHeight(), 640, _colorTable[768] | 0x2000000, 1);
// SFALL: Cosmetic fix to the dialog review interface to prevent the
// player name from being displayed at the bottom of the window when the
// text is longer than one screen.
if (y >= 407) {
break;
}
if (dialogReviewEntry->optionMessageListId != -3) { if (dialogReviewEntry->optionMessageListId != -3) {
sprintf(name, "%s:", objectGetName(gDude)); sprintf(name, "%s:", objectGetName(gDude));
windowDrawText(win, name, 180, 88, y, _colorTable[21140] | 0x2000000); windowDrawText(win, name, 180, 88, y, _colorTable[21140] | 0x2000000);