Enable league button if an alternate server is set. To be re-enabled completely when an OC league exists (and when we have new button graphics).

heavy-resources
Sven Eberhardt 2014-03-23 20:41:25 +01:00
parent c1a430c561
commit 75c5ac1465
1 changed files with 3 additions and 3 deletions

View File

@ -607,11 +607,11 @@ C4GameOptionButtons::C4GameOptionButtons(const C4Rect &rcBounds, bool fNetwork,
btnInternet->SetToolTip(LoadResStr("IDS_DLGTIP_STARTINTERNETGAME"));
btnInternet->SetEnabled(!fIsDisabled);
AddElement(btnInternet);
}
}
else btnInternet = NULL;
bool fIsLeague = false;
// League button disabled (#479, re-enable when an OC league exists)
if (0 && fNetwork)
// League button disabled by default, but enabled if a custom league server is set (#479, re-enable completely when an OC league exists)
if (fNetwork && ::Config.Network.UseAlternateServer)
{
C4GUI::Icons eLeagueIcon;
fIsLeague = fLobby ? Game.Parameters.isLeague() : !!Config.Network.LeagueServerSignUp;