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

Function NetworkDistributeCommands

src/network/network_command.cpp:357–366  ·  view source on GitHub ↗

Distribute the commands of ourself and the clients. */

Source from the content-addressed store, hash-verified

355
356/** Distribute the commands of ourself and the clients. */
357void NetworkDistributeCommands()
358{
359 /* First send the server's commands. */
360 DistributeQueue(_local_wait_queue, nullptr);
361
362 /* Then send the queues of the others. */
363 for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) {
364 DistributeQueue(cs->incoming_queue, cs);
365 }
366}
367
368/**
369 * Receives a command from the network.

Callers 1

NetworkGameLoopFunction · 0.85

Calls 1

DistributeQueueFunction · 0.85

Tested by

no test coverage detected