mirror of https://github.com/OpenTTD/OpenTTD
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.pull/8766/head
parent
6b8f9b50b9
commit
3677418225
|
@ -550,7 +550,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::SendWelcome()
|
||||||
/** Tell the client that its put in a waiting queue. */
|
/** Tell the client that its put in a waiting queue. */
|
||||||
NetworkRecvStatus ServerNetworkGameSocketHandler::SendWait()
|
NetworkRecvStatus ServerNetworkGameSocketHandler::SendWait()
|
||||||
{
|
{
|
||||||
int waiting = 0;
|
int waiting = 1; // current player getting the map counts as 1
|
||||||
Packet *p;
|
Packet *p;
|
||||||
|
|
||||||
/* Count how many clients are waiting in the queue, in front of you! */
|
/* Count how many clients are waiting in the queue, in front of you! */
|
||||||
|
|
Loading…
Reference in New Issue