MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiSendPPSSet

Function MultiSendPPSSet

Descent3/multi.cpp:7553–7564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7551}
7552
7553void MultiSendPPSSet(int pps) {
7554 int size = 0;
7555 uint8_t data[MAX_GAME_DATA_SIZE];
7556 int count = 0;
7557 // Client sends this only
7558 MULTI_ASSERT_NOMESSAGE(Netgame.local_role != LR_SERVER);
7559 size = START_DATA(MP_CLIENT_SET_PPS, data, &count, 1);
7560 MultiAddByte(pps, data, &count);
7561 mprintf(0, "Telling the server we want a PPS of %d\n", pps);
7562 END_DATA(count, data, size);
7563 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count, false);
7564}
7565
7566void MultiDoPPSSet(uint8_t *data, int slot) {
7567 int count = 0;

Callers 1

MultiDoBytesSentFunction · 0.85

Calls 4

START_DATAFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected