Merge 72463a76e2b72de5bf01a6d7084a74822732969e into da9b8209d6936efe39fb4127152a6f17292f9b99

This commit is contained in:
Buwwet 2025-07-19 17:23:07 +02:00 committed by GitHub
commit 9c98a0cb4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1086,6 +1086,9 @@ static void ChatScreen_ChatReceived(void* screen, const cc_string* msg, int type
s->dirty = true;
if (type == MSG_TYPE_NORMAL) {
/* Check if the chatIndex isn't located at the bottom of the chat log, that means that the user has scrolled. */
if (Chat_Log.count - s->chatIndex != Gui.Chatlines + 1) return;
s->chatIndex++;
if (!Gui.Chatlines) return;
TextGroupWidget_ShiftUp(&s->chat);