Commit 5f795539 authored by Max Maton's avatar Max Maton
Browse files

Sort servers which seed locally instead of lobby below other servers.

parent 531f86d3
Pipeline #5864 failed with stage
in 1 minute and 55 seconds
......@@ -1231,7 +1231,7 @@ public void RSAllServersAddr(Handle RShDriver, Handle RShResult, const char[] sE
//char[] ServerIndexChar = new char[64];
//IntToString(ServerIndex, ServerIndexChar, 64);
char RSGetAllServersAddrEach[1024];
Format(RSGetAllServersAddrEach, sizeof(RSGetAllServersAddrEach), "SELECT addr, players, bots FROM `LobbyDB`.`servers` WHERE password=0 AND isenabled=1 AND name NOT LIKE '%%LOBBY%%' AND addr!='80.112.155.100:27015' AND addr!='80.112.155.100:27017' ORDER BY players DESC LIMIT %i,1;", ServerIndex);
Format(RSGetAllServersAddrEach, sizeof(RSGetAllServersAddrEach), "SELECT addr, players, bots FROM `LobbyDB`.`servers` WHERE password=0 AND isenabled=1 AND name NOT LIKE '%%LOBBY%%' AND addr!='80.112.155.100:27015' AND addr!='80.112.155.100:27017' ORDER BY players ASC LIMIT %i,1;", ServerIndex);
//PrintToServer("%s", ServerIndexChar);
SQL_TQuery(hDatabase, RSInfoOfServer, RSGetAllServersAddrEach, ServerIndex);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment