mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -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;
|
s->dirty = true;
|
||||||
|
|
||||||
if (type == MSG_TYPE_NORMAL) {
|
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++;
|
s->chatIndex++;
|
||||||
if (!Gui.Chatlines) return;
|
if (!Gui.Chatlines) return;
|
||||||
TextGroupWidget_ShiftUp(&s->chat);
|
TextGroupWidget_ShiftUp(&s->chat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user