The clear timer line will not be needed all the time, but when a new message removes an older message (only happens when there's not enough room) it needs to disable the timer for that older message
This was SVN commit r7923.
This commit is contained in:
parent
3947495db9
commit
b7d5648cc9
@ -98,6 +98,7 @@ function addChatMessage(msg)
|
||||
|
||||
function removeOldChatMessages()
|
||||
{
|
||||
clearTimeout(chatTimers[0]);
|
||||
chatTimers.shift();
|
||||
chatMessages.shift();
|
||||
getGUIObjectByName("chatText").caption = chatMessages.join("\n");
|
||||
|
Loading…
Reference in New Issue
Block a user