class repl_InternetPage extends KFServerListPageInternet;


// game startup: (Function KFGui.KFServerListPageInternet.GameTypeChanged:0081) Accessed none 'li_Server'
// KFGui.KFServerListPageInternet
function GameTypeChanged(UT2K4Browser_ServersList NewList)
{
  local int i;

  if (NewList != none)
  {
    if (li_Server != none)
    {
      li_Server.OnChange = none;
      li_Server.StopPings();
      li_Server.SetAnchor(none);
    }

    lb_Server.InitBaseList(NewList);
  }

  CurrentGameType = Browser.co_GameType.GetText();

  // ADDITION!!! none check
  if (li_Server != none)
    li_Server.Clear();

  // Display any found servers of the current game type
  for (i = 0; i < AllServers.Length; i++)
  {
    if (AllServers[i].GameType == CurrentGameType || InterchangeableGameTypes(AllServers[i].GameType,CurrentGameType) || Browser.co_GameType.GetComponentValue() == KFServerBrowser(Browser).AllTypesClassName)
    {
      DisplayServers(AllServers[i]);
    }
  }

  InitServerList();
}

defaultproperties
{
}
