mirror of https://github.com/OpenTTD/OpenTTD
(svn r14720) -Codechange: s/FOR_ALL_CLIENTS/FOR_ALL_CLIENT_SOCKETS/ as the latter describes the name more precisely.
parent
b4734ee9a4
commit
d95a485108
|
@ -119,7 +119,7 @@ NetworkClientInfo *NetworkFindClientInfoFromClientID(ClientID client_id)
|
||||||
{
|
{
|
||||||
NetworkClientInfo *ci;
|
NetworkClientInfo *ci;
|
||||||
|
|
||||||
for (ci = _network_client_info; ci != endof(_network_client_info); ci++) {
|
FOR_ALL_CLIENT_INFOS(ci) {
|
||||||
if (ci->client_id == client_id) return ci;
|
if (ci->client_id == client_id) return ci;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ NetworkClientInfo *NetworkFindClientInfoFromIP(const char *ip)
|
||||||
NetworkClientInfo *ci;
|
NetworkClientInfo *ci;
|
||||||
uint32 ip_number = inet_addr(ip);
|
uint32 ip_number = inet_addr(ip);
|
||||||
|
|
||||||
for (ci = _network_client_info; ci != endof(_network_client_info); ci++) {
|
FOR_ALL_CLIENT_INFOS(ci) {
|
||||||
if (ci->client_ip == ip_number) return ci;
|
if (ci->client_ip == ip_number) return ci;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ NetworkTCPSocketHandler *NetworkFindClientStateFromClientID(ClientID client_id)
|
||||||
{
|
{
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
|
|
||||||
for (cs = _clients; cs != endof(_clients); cs++) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->client_id == client_id) return cs;
|
if (cs->client_id == client_id) return cs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,7 +478,7 @@ void NetworkCloseClient(NetworkTCPSocketHandler *cs)
|
||||||
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
||||||
|
|
||||||
// Inform other clients of this... strange leaving ;)
|
// Inform other clients of this... strange leaving ;)
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status > STATUS_AUTH && cs != new_cs) {
|
if (new_cs->status > STATUS_AUTH && cs != new_cs) {
|
||||||
SEND_COMMAND(PACKET_SERVER_ERROR_QUIT)(new_cs, cs->client_id, errorno);
|
SEND_COMMAND(PACKET_SERVER_ERROR_QUIT)(new_cs, cs->client_id, errorno);
|
||||||
}
|
}
|
||||||
|
@ -669,7 +669,7 @@ static void NetworkClose()
|
||||||
{
|
{
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (!_network_server) {
|
if (!_network_server) {
|
||||||
SEND_COMMAND(PACKET_CLIENT_QUIT)("leaving");
|
SEND_COMMAND(PACKET_CLIENT_QUIT)("leaving");
|
||||||
cs->Send_Packets();
|
cs->Send_Packets();
|
||||||
|
@ -891,7 +891,7 @@ void NetworkReboot()
|
||||||
{
|
{
|
||||||
if (_network_server) {
|
if (_network_server) {
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
SEND_COMMAND(PACKET_SERVER_NEWGAME)(cs);
|
SEND_COMMAND(PACKET_SERVER_NEWGAME)(cs);
|
||||||
cs->Send_Packets();
|
cs->Send_Packets();
|
||||||
}
|
}
|
||||||
|
@ -905,7 +905,7 @@ void NetworkDisconnect()
|
||||||
{
|
{
|
||||||
if (_network_server) {
|
if (_network_server) {
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
SEND_COMMAND(PACKET_SERVER_SHUTDOWN)(cs);
|
SEND_COMMAND(PACKET_SERVER_SHUTDOWN)(cs);
|
||||||
cs->Send_Packets();
|
cs->Send_Packets();
|
||||||
}
|
}
|
||||||
|
@ -929,7 +929,7 @@ static bool NetworkReceive()
|
||||||
FD_ZERO(&read_fd);
|
FD_ZERO(&read_fd);
|
||||||
FD_ZERO(&write_fd);
|
FD_ZERO(&write_fd);
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
FD_SET(cs->sock, &read_fd);
|
FD_SET(cs->sock, &read_fd);
|
||||||
FD_SET(cs->sock, &write_fd);
|
FD_SET(cs->sock, &write_fd);
|
||||||
}
|
}
|
||||||
|
@ -949,7 +949,7 @@ static bool NetworkReceive()
|
||||||
if (_network_server && FD_ISSET(_listensocket, &read_fd)) NetworkAcceptClients();
|
if (_network_server && FD_ISSET(_listensocket, &read_fd)) NetworkAcceptClients();
|
||||||
|
|
||||||
// read stuff from clients
|
// read stuff from clients
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
cs->writable = !!FD_ISSET(cs->sock, &write_fd);
|
cs->writable = !!FD_ISSET(cs->sock, &write_fd);
|
||||||
if (FD_ISSET(cs->sock, &read_fd)) {
|
if (FD_ISSET(cs->sock, &read_fd)) {
|
||||||
if (_network_server) {
|
if (_network_server) {
|
||||||
|
@ -977,7 +977,7 @@ static bool NetworkReceive()
|
||||||
static void NetworkSend()
|
static void NetworkSend()
|
||||||
{
|
{
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->writable) {
|
if (cs->writable) {
|
||||||
cs->Send_Packets();
|
cs->Send_Packets();
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, Comma
|
||||||
c.callback = 0;
|
c.callback = 0;
|
||||||
/* And we queue it for delivery to the clients */
|
/* And we queue it for delivery to the clients */
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->status > STATUS_MAP_WAIT) NetworkAddCommandQueue(cs, &c);
|
if (cs->status > STATUS_MAP_WAIT) NetworkAddCommandQueue(cs, &c);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -161,7 +161,7 @@ bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
|
||||||
#define SEND_COMMAND(type) NetworkPacketSend_ ## type ## _command
|
#define SEND_COMMAND(type) NetworkPacketSend_ ## type ## _command
|
||||||
#define RECEIVE_COMMAND(type) NetworkPacketReceive_ ## type ## _command
|
#define RECEIVE_COMMAND(type) NetworkPacketReceive_ ## type ## _command
|
||||||
|
|
||||||
#define FOR_ALL_CLIENTS(cs) for (cs = _clients; cs != endof(_clients) && cs->IsConnected(); cs++)
|
#define FOR_ALL_CLIENT_SOCKETS(cs) for (cs = _clients; cs != endof(_clients) && cs->IsConnected(); cs++)
|
||||||
|
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
#endif /* NETWORK_INTERNAL_H */
|
#endif /* NETWORK_INTERNAL_H */
|
||||||
|
|
|
@ -84,7 +84,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_COMPANY_INFO)
|
||||||
strecpy(clients[ci->client_playas], ci->client_name, lastof(clients[ci->client_playas]));
|
strecpy(clients[ci->client_playas], ci->client_name, lastof(clients[ci->client_playas]));
|
||||||
}
|
}
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(csi) {
|
FOR_ALL_CLIENT_SOCKETS(csi) {
|
||||||
char client_name[NETWORK_CLIENT_NAME_LENGTH];
|
char client_name[NETWORK_CLIENT_NAME_LENGTH];
|
||||||
|
|
||||||
NetworkGetClientName(client_name, sizeof(client_name), csi);
|
NetworkGetClientName(client_name, sizeof(client_name), csi);
|
||||||
|
@ -156,7 +156,7 @@ DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR)(NetworkTCPSocketHandler *cs,
|
||||||
|
|
||||||
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status > STATUS_AUTH && new_cs != cs) {
|
if (new_cs->status > STATUS_AUTH && new_cs != cs) {
|
||||||
// Some errors we filter to a more general error. Clients don't have to know the real
|
// Some errors we filter to a more general error. Clients don't have to know the real
|
||||||
// reason a joining failed.
|
// reason a joining failed.
|
||||||
|
@ -253,7 +253,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_WELCOME)
|
||||||
cs->Send_Packet(p);
|
cs->Send_Packet(p);
|
||||||
|
|
||||||
// Transmit info about all the active clients
|
// Transmit info about all the active clients
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs != cs && new_cs->status > STATUS_AUTH)
|
if (new_cs != cs && new_cs->status > STATUS_AUTH)
|
||||||
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(cs, new_cs->GetInfo());
|
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(cs, new_cs->GetInfo());
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_WAIT)
|
||||||
Packet *p;
|
Packet *p;
|
||||||
|
|
||||||
// Count how many clients are waiting in the queue
|
// Count how many clients are waiting in the queue
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status == STATUS_MAP_WAIT) waiting++;
|
if (new_cs->status == STATUS_MAP_WAIT) waiting++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP)
|
||||||
bool new_map_client = false;
|
bool new_map_client = false;
|
||||||
// Check if there is a client waiting for receiving the map
|
// Check if there is a client waiting for receiving the map
|
||||||
// and start sending him the map
|
// and start sending him the map
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status == STATUS_MAP_WAIT) {
|
if (new_cs->status == STATUS_MAP_WAIT) {
|
||||||
// Check if we already have a new client to send the map to
|
// Check if we already have a new client to send the map to
|
||||||
if (!new_map_client) {
|
if (!new_map_client) {
|
||||||
|
@ -759,7 +759,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_GETMAP)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if someone else is receiving the map
|
// Check if someone else is receiving the map
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status == STATUS_MAP) {
|
if (new_cs->status == STATUS_MAP) {
|
||||||
// Tell the new client to wait
|
// Tell the new client to wait
|
||||||
cs->status = STATUS_MAP_WAIT;
|
cs->status = STATUS_MAP_WAIT;
|
||||||
|
@ -795,7 +795,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_MAP_OK)
|
||||||
cs->last_frame = _frame_counter;
|
cs->last_frame = _frame_counter;
|
||||||
cs->last_frame_server = _frame_counter;
|
cs->last_frame_server = _frame_counter;
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status > STATUS_AUTH) {
|
if (new_cs->status > STATUS_AUTH) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(new_cs, cs->GetInfo());
|
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(new_cs, cs->GetInfo());
|
||||||
SEND_COMMAND(PACKET_SERVER_JOIN)(new_cs, cs->client_id);
|
SEND_COMMAND(PACKET_SERVER_JOIN)(new_cs, cs->client_id);
|
||||||
|
@ -927,7 +927,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND)
|
||||||
|
|
||||||
// Queue the command for the clients (are send at the end of the frame
|
// Queue the command for the clients (are send at the end of the frame
|
||||||
// if they can handle it ;))
|
// if they can handle it ;))
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status >= STATUS_MAP) {
|
if (new_cs->status >= STATUS_MAP) {
|
||||||
// Callbacks are only send back to the client who sent them in the
|
// Callbacks are only send back to the client who sent them in the
|
||||||
// first place. This filters that out.
|
// first place. This filters that out.
|
||||||
|
@ -973,7 +973,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_ERROR)
|
||||||
|
|
||||||
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status > STATUS_AUTH) {
|
if (new_cs->status > STATUS_AUTH) {
|
||||||
SEND_COMMAND(PACKET_SERVER_ERROR_QUIT)(new_cs, cs->client_id, errorno);
|
SEND_COMMAND(PACKET_SERVER_ERROR_QUIT)(new_cs, cs->client_id, errorno);
|
||||||
}
|
}
|
||||||
|
@ -1002,7 +1002,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_QUIT)
|
||||||
|
|
||||||
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
NetworkTextMessage(NETWORK_ACTION_LEAVE, CC_DEFAULT, false, client_name, "%s", str);
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(new_cs) {
|
FOR_ALL_CLIENT_SOCKETS(new_cs) {
|
||||||
if (new_cs->status > STATUS_AUTH) {
|
if (new_cs->status > STATUS_AUTH) {
|
||||||
SEND_COMMAND(PACKET_SERVER_QUIT)(new_cs, cs->client_id, str);
|
SEND_COMMAND(PACKET_SERVER_QUIT)(new_cs, cs->client_id, str);
|
||||||
}
|
}
|
||||||
|
@ -1063,7 +1063,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci->client_playas), false, ci->client_name, "%s", msg);
|
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci->client_playas), false, ci->client_name, "%s", msg);
|
||||||
} else {
|
} else {
|
||||||
/* Else find the client to send the message to */
|
/* Else find the client to send the message to */
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->client_id == (ClientID)dest) {
|
if (cs->client_id == (ClientID)dest) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
||||||
break;
|
break;
|
||||||
|
@ -1079,7 +1079,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
if (ci != NULL && ci_to != NULL)
|
if (ci != NULL && ci_to != NULL)
|
||||||
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci->client_playas), true, ci_to->client_name, "%s", msg);
|
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci->client_playas), true, ci_to->client_name, "%s", msg);
|
||||||
} else {
|
} else {
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->client_id == from_id) {
|
if (cs->client_id == from_id) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, (ClientID)dest, true, msg);
|
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, (ClientID)dest, true, msg);
|
||||||
break;
|
break;
|
||||||
|
@ -1093,7 +1093,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
// on the client who did sent it.
|
// on the client who did sent it.
|
||||||
/* Find all clients that belong to this company */
|
/* Find all clients that belong to this company */
|
||||||
ci_to = NULL;
|
ci_to = NULL;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
ci = cs->GetInfo();
|
ci = cs->GetInfo();
|
||||||
if (ci->client_playas == (CompanyID)dest) {
|
if (ci->client_playas == (CompanyID)dest) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
||||||
|
@ -1122,7 +1122,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
GetString(name, str, lastof(name));
|
GetString(name, str, lastof(name));
|
||||||
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci_own->client_playas), true, name, "%s", msg);
|
NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColor(ci_own->client_playas), true, name, "%s", msg);
|
||||||
} else {
|
} else {
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
if (cs->client_id == from_id) {
|
if (cs->client_id == from_id) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, ci_to->client_id, true, msg);
|
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, ci_to->client_id, true, msg);
|
||||||
}
|
}
|
||||||
|
@ -1135,7 +1135,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
DEBUG(net, 0, "[server] received unknown chat destination type %d. Doing broadcast instead", desttype);
|
DEBUG(net, 0, "[server] received unknown chat destination type %d. Doing broadcast instead", desttype);
|
||||||
/* fall-through to next case */
|
/* fall-through to next case */
|
||||||
case DESTTYPE_BROADCAST:
|
case DESTTYPE_BROADCAST:
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg);
|
||||||
}
|
}
|
||||||
ci = NetworkFindClientInfoFromClientID(from_id);
|
ci = NetworkFindClientInfoFromClientID(from_id);
|
||||||
|
@ -1340,7 +1340,7 @@ void NetworkUpdateClientInfo(ClientID client_id)
|
||||||
|
|
||||||
if (ci == NULL) return;
|
if (ci == NULL) return;
|
||||||
|
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(cs, ci);
|
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(cs, ci);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1497,7 +1497,7 @@ void NetworkServer_Tick(bool send_frame)
|
||||||
|
|
||||||
// Now we are done with the frame, inform the clients that they can
|
// Now we are done with the frame, inform the clients that they can
|
||||||
// do their frame!
|
// do their frame!
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
// Check if the speed of the client is what we can expect from a client
|
// Check if the speed of the client is what we can expect from a client
|
||||||
if (cs->status == STATUS_ACTIVE) {
|
if (cs->status == STATUS_ACTIVE) {
|
||||||
// 1 lag-point per day
|
// 1 lag-point per day
|
||||||
|
@ -1604,7 +1604,7 @@ void NetworkServerShowStatusToConsole()
|
||||||
};
|
};
|
||||||
|
|
||||||
NetworkTCPSocketHandler *cs;
|
NetworkTCPSocketHandler *cs;
|
||||||
FOR_ALL_CLIENTS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
int lag = NetworkCalculateLag(cs);
|
int lag = NetworkCalculateLag(cs);
|
||||||
const NetworkClientInfo *ci = cs->GetInfo();
|
const NetworkClientInfo *ci = cs->GetInfo();
|
||||||
const char* status;
|
const char* status;
|
||||||
|
|
Loading…
Reference in New Issue