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

Function MultiDoDoneWorldStates

Descent3/multi.cpp:3016–3029  ·  view source on GitHub ↗

Server is telling us that its done sending objects

Source from the content-addressed store, hash-verified

3014
3015// Server is telling us that its done sending objects
3016void MultiDoDoneWorldStates(uint8_t *data) {
3017 MULTI_ASSERT(Netgame.local_role == LR_CLIENT, NULL);
3018
3019 int count = 0;
3020
3021 // Skip header stuff
3022 SKIP_HEADER(data, &count);
3023 NetPlayers[Player_num].sequence = NETSEQ_PLAYING;
3024 NetPlayers[Player_num].total_bytes_sent = 0;
3025 NetPlayers[Player_num].total_bytes_rcvd = 0;
3026 PlayerMoveToStartPos(Player_num, Players[Player_num].start_index);
3027
3028 MultiSendEnteringGame();
3029}
3030
3031// Makes an abbrievated version of a matrix
3032void MultiMakeMatrix(multi_orientation *dest, matrix *src) {

Callers 1

MultiProcessDataFunction · 0.85

Calls 3

SKIP_HEADERFunction · 0.85
PlayerMoveToStartPosFunction · 0.85
MultiSendEnteringGameFunction · 0.85

Tested by

no test coverage detected