Make UI continue searching for local servers until found

When refreshing local servers, Team Arean UI never changed the status
message when it timed out. This gave a false impression it was still
looking for servers.

Let's continue looking for local servers in q3_ui and Team Arena UI
until one is found.
This commit is contained in:
Zack Middleton 2017-07-01 12:46:54 -05:00
parent 21eeaee9c8
commit 0ba359c29e
2 changed files with 12 additions and 1 deletions

View file

@ -881,6 +881,13 @@ static void ArenaServers_DoRefresh( void )
return;
}
}
} else if (g_servertype == UIAS_LOCAL) {
if (!trap_LAN_GetServerCount(AS_LOCAL)) {
// no local servers found, check again
trap_Cmd_ExecuteText( EXEC_APPEND, "localservers\n" );
g_arenaservers.refreshtime = uis.realtime + 5000;
return;
}
}
if (uis.realtime < g_arenaservers.nextpingtime)