mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 14:53:01 +00: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:
@@ -191,4 +191,11 @@ function clearChatMessages()
|
|||||||
{
|
{
|
||||||
g_ChatMessages.length = 0;
|
g_ChatMessages.length = 0;
|
||||||
Engine.GetGUIObjectByName("chatText").caption = "";
|
Engine.GetGUIObjectByName("chatText").caption = "";
|
||||||
|
|
||||||
|
try {
|
||||||
|
for (let timer of g_ChatTimers)
|
||||||
|
clearTimeout(timer);
|
||||||
|
g_ChatTimers.length = 0;
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user