From cfa16127669482ee0d2d997964557a9aa3a7311f Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 27 Feb 2021 10:29:29 +0100 Subject: [PATCH] Fix: [Network] also count the person downloading the map in the queue Strictly seen, there are "N" people -waiting- in front of you in the queue, but it is nicer to show "N + 1" for the person that is currently downloading the map. Avoids it showing: "0 clients in front of you". That just feels a bit off. (cherry picked from commit 3677418225c069b7b6b16f3d0855a772f0e47c0a) --- src/network/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 2e3d70191a..421fc9907e 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -575,7 +575,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::SendWelcome() /** Tell the client that its put in a waiting queue. */ NetworkRecvStatus ServerNetworkGameSocketHandler::SendWait() { - int waiting = 0; + int waiting = 1; // current player getting the map counts as 1 Packet *p; /* Count how many clients are waiting in the queue, in front of you! */