mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 08:36:38 -04:00
Merge 72463a76e2b72de5bf01a6d7084a74822732969e into da9b8209d6936efe39fb4127152a6f17292f9b99
This commit is contained in:
commit
9c98a0cb4d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user