mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15155) -Codechange: remove unused return value
This commit is contained in:
parent
7205a8f9f4
commit
9b463c26de
|
@ -727,11 +727,11 @@ void NetworkRebuildHostList()
|
|||
}
|
||||
|
||||
// Used by clients, to connect to a server
|
||||
bool NetworkClientConnectGame(const char *host, uint16 port)
|
||||
void NetworkClientConnectGame(const char *host, uint16 port)
|
||||
{
|
||||
if (!_network_available) return false;
|
||||
if (!_network_available) return;
|
||||
|
||||
if (port == 0) return false;
|
||||
if (port == 0) return;
|
||||
|
||||
strecpy(_settings_client.network.last_host, host, lastof(_settings_client.network.last_host));
|
||||
_settings_client.network.last_port = port;
|
||||
|
@ -750,8 +750,6 @@ bool NetworkClientConnectGame(const char *host, uint16 port)
|
|||
// Connecting failed
|
||||
NetworkError(STR_NETWORK_ERR_NOCONNECTION);
|
||||
}
|
||||
|
||||
return _networking;
|
||||
}
|
||||
|
||||
static void NetworkInitGameInfo()
|
||||
|
|
|
@ -36,7 +36,7 @@ void NetworkStartDebugLog(const char *hostname, uint16 port);
|
|||
void NetworkPopulateCompanyStats(NetworkCompanyStats *stats);
|
||||
|
||||
void NetworkUpdateClientInfo(ClientID client_id);
|
||||
bool NetworkClientConnectGame(const char *host, uint16 port);
|
||||
void NetworkClientConnectGame(const char *host, uint16 port);
|
||||
void NetworkClientSendRcon(const char *password, const char *command);
|
||||
void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const char *msg, int64 data = 0);
|
||||
void NetworkClientSetPassword(const char *password);
|
||||
|
|
Loading…
Reference in New Issue