diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-27 10:29:29 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-28 12:27:04 +0100 |
commit | 3677418225c069b7b6b16f3d0855a772f0e47c0a (patch) | |
tree | 66f0f728c3ab93cec7730f0aa6dd354ddce77df4 /src/network | |
parent | 6b8f9b50b99bc09fd35a9a0bbffdb6f306aa97c7 (diff) | |
download | openttd-3677418225c069b7b6b16f3d0855a772f0e47c0a.tar.xz |
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.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 5b6bc03f4..9a0c6a3bb 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -550,7 +550,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! */ |