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

Function NetworkClient_Connected

src/network/network_client.cpp:1187–1198  ·  view source on GitHub ↗

Is called after a client is connected to the server */

Source from the content-addressed store, hash-verified

1185
1186/** Is called after a client is connected to the server */
1187void NetworkClient_Connected()
1188{
1189 /* Set the frame-counter to 0 so nothing happens till we are ready */
1190 _frame_counter = 0;
1191 _frame_counter_server = 0;
1192 last_ack_frame = 0;
1193
1194 Debug(net, 9, "Client::NetworkClient_Connected()");
1195
1196 /* Request the game-info */
1197 MyClient::SendJoin();
1198}
1199
1200/**
1201 * Send a remote console command.

Callers 1

OnConnectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected