forked from mirror/OpenTTD
Cleanup: Remove unneeded parameters.
This commit is contained in:
@@ -870,7 +870,7 @@ bool NetworkServerStart()
|
||||
/* Check for the client and server names to be set, but only after the scripts had a chance to set them.*/
|
||||
if (_network_dedicated) CheckClientAndServerName();
|
||||
|
||||
NetworkDisconnect(false, false);
|
||||
NetworkDisconnect(false);
|
||||
NetworkInitialize(false);
|
||||
NetworkUDPInitialize();
|
||||
Debug(net, 5, "Starting listeners for clients");
|
||||
@@ -938,10 +938,9 @@ void NetworkReboot()
|
||||
|
||||
/**
|
||||
* We want to disconnect from the host/clients.
|
||||
* @param blocking whether to wait till everything has been closed.
|
||||
* @param close_admins Whether the admin sockets need to be closed as well.
|
||||
*/
|
||||
void NetworkDisconnect(bool blocking, bool close_admins)
|
||||
void NetworkDisconnect(bool close_admins)
|
||||
{
|
||||
if (_network_server) {
|
||||
for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) {
|
||||
@@ -1263,7 +1262,7 @@ void NetworkStartUp()
|
||||
/** This shuts the network down */
|
||||
void NetworkShutDown()
|
||||
{
|
||||
NetworkDisconnect(true);
|
||||
NetworkDisconnect();
|
||||
NetworkHTTPUninitialize();
|
||||
NetworkUDPClose();
|
||||
|
||||
|
Reference in New Issue
Block a user