mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Clear g_ChatTimers too in case the new /clear command is used from the session. Refs #3396.
This was SVN commit r17467.
This commit is contained in:
parent
4dbc9b8b1d
commit
25e6136786
1 changed files with 7 additions and 0 deletions
|
|
@ -191,4 +191,11 @@ function clearChatMessages()
|
|||
{
|
||||
g_ChatMessages.length = 0;
|
||||
Engine.GetGUIObjectByName("chatText").caption = "";
|
||||
|
||||
try {
|
||||
for (let timer of g_ChatTimers)
|
||||
clearTimeout(timer);
|
||||
g_ChatTimers.length = 0;
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue