1
0
forked from mirrors/0ad

Code cleanup. Refs #3420.

Since the window is now closed immediately after disconnect in
messages.js, we don't need to close it in menu.js.

This was SVN commit r17323.
This commit is contained in:
elexis
2015-11-29 15:11:30 +00:00
parent 9f75b78a84
commit bb7c4aa86a
@@ -210,10 +210,7 @@ function openOptions()
function openChat()
{
if (g_Disconnected)
{
closeChat();
return;
}
updateTeamCheckbox(false);
@@ -239,10 +236,7 @@ function updateTeamCheckbox(check)
function toggleChatWindow(teamChat)
{
if (g_Disconnected)
{
closeChat();
return;
}
var chatWindow = Engine.GetGUIObjectByName("chatDialogPanel");
var chatInput = Engine.GetGUIObjectByName("chatInput");