1
0
forked from 0ad/0ad

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:
WhiteTreePaladin 2010-08-12 17:50:43 +00:00
parent 3947495db9
commit b7d5648cc9

View File

@ -98,6 +98,7 @@ function addChatMessage(msg)
function removeOldChatMessages()
{
clearTimeout(chatTimers[0]);
chatTimers.shift();
chatMessages.shift();
getGUIObjectByName("chatText").caption = chatMessages.join("\n");