mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 01:55:19 -04:00
Fix old announcement showing for one frame when changing texture pack (Thanks goodly)
This commit is contained in:
parent
01d94cd3d8
commit
129999e39f
@ -538,17 +538,19 @@ static void ChatScreen_DrawChat(struct ChatScreen* s, double delta) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Destroy announcement texture before even rendering it at all, */
|
||||
/* otherwise changing texture pack shows announcement for one frame */
|
||||
if (s->announcement.tex.ID && now > Chat_AnnouncementReceived + (5 * 1000)) {
|
||||
Elem_TryFree(&s->announcement);
|
||||
}
|
||||
Elem_Render(&s->announcement, delta);
|
||||
|
||||
if (s->grabsInput) {
|
||||
Elem_Render(&s->input.base, delta);
|
||||
if (s->altText.active) {
|
||||
Elem_Render(&s->altText, delta);
|
||||
}
|
||||
}
|
||||
|
||||
if (s->announcement.tex.ID && now > Chat_AnnouncementReceived + (5 * 1000)) {
|
||||
Elem_TryFree(&s->announcement);
|
||||
}
|
||||
}
|
||||
|
||||
static void ChatScreen_TabEntryAdded(void* screen, int id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user