Commit 5e5a9ba3 authored by Neoony's avatar Neoony
Browse files

Merge branch 'feature/server-vote-sorting' into 'master'

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

See merge request !3
parents 531f86d3 d43019ef
Pipeline #5883 passed with stages
in 2 minutes and 51 seconds
......@@ -7,7 +7,7 @@ stages:
build:
stage: build
script:
- /usr/bin/apt-get update
- /usr/bin/apt-get update || true
- /usr/bin/apt-get --yes install ca-certificates
- build/build
artifacts:
......
......@@ -21,7 +21,7 @@
//#include <emputils>
#include <socket>
#define PluginVer "v0.1 WIP26"
#define PluginVer "v0.1 WIP27"
public Plugin myinfo =
{
......@@ -984,7 +984,7 @@ public Action StartVote()
SetMenuExitButton(VoteHandle, false);
SetMenuTitle(VoteHandle, "[Lobby] Which server to join?");
for(int ServerCount=1; ServerCount<=rowCount; ServerCount++)
for(int ServerCount=rowCount; ServerCount>=1; ServerCount--)
{
int ServerIndex = ServerCount - 1;
Format(ServerVoteItem[ServerIndex], 256, "%s [max %s players] \n %s", namex[ServerIndex], maxplayersx[ServerIndex], mapx[ServerIndex]);
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "v0.1 WIP26"
"Latest" "v0.1 WIP27"
}
"Notes" "First release"
......@@ -45,6 +45,7 @@
"Notes" "WIP25: Bugfix to prevent cleaning up invalid socket handles"
"Notes" "WIP26: Fixed lobby trying to query if db is down resulting in error"
"Notes" "WIP26: Improved reconnecting to db on fail"
"Notes" "WIP27: Sort servers without players above servers with seeding players"
}
"Files"
......
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