Prevent displaying remote servers on startup of LAN servers browser
After startup of LAN servers browser there appeared sometimes also remote servers, instead of only LAN servers. I such case "si.lastpingmillis=servermenumillis" for all remote servers. So this commit changes a little existing condition, to prevent above problem.
This commit is contained in:
@@ -1029,7 +1029,7 @@ void refreshservers(void *menu, bool init)
|
||||
{
|
||||
serverinfo &si = *servers[i];
|
||||
si.menuline_to = si.menuline_from = ((gmenu *)menu)->items.length();
|
||||
if( (!showallservers && si.lastpingmillis < servermenumillis) || (si.maxclients>MAXCL && searchlan<2) ) continue; // no pong yet or forbidden
|
||||
if( (!showallservers && si.lastpingmillis <= servermenumillis) || (si.maxclients>MAXCL && searchlan<2) ) continue; // no pong yet or forbidden
|
||||
int banned = ((si.pongflags >> PONGFLAG_BANNED) & 1) | ((si.pongflags >> (PONGFLAG_BLACKLIST - 1)) & 2);
|
||||
bool showthisone = !(banned && showonlygoodservers) && !(showonlyfavourites > 0 && si.favcat != showonlyfavourites - 1);
|
||||
bool serverfull = si.numplayers >= si.maxclients;
|
||||
|
||||
Reference in New Issue
Block a user