MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsConnected

Method IsConnected

src/network/network_client.cpp:484–487  ·  view source on GitHub ↗

* Check whether the client is actually connected (and in the game). * @return True when the client is connected. */

Source from the content-addressed store, hash-verified

482 * @return True when the client is connected.
483 */
484bool ClientNetworkGameSocketHandler::IsConnected()
485{
486 return my_client != nullptr && my_client->status == STATUS_ACTIVE;
487}
488
489
490/***********

Callers 1

SendReceiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected