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

Function MultiSendEnteringGame

Descent3/multi.cpp:2850–2862  ·  view source on GitHub ↗

Tell the server I'm entering the game

Source from the content-addressed store, hash-verified

2848
2849// Tell the server I'm entering the game
2850void MultiSendEnteringGame() {
2851 int size;
2852 uint8_t data[MAX_GAME_DATA_SIZE];
2853 int count = 0;
2854
2855 mprintf(0, "Sending entering game\n");
2856
2857 size = START_DATA(MP_ENTERING_GAME, data, &count);
2858 MultiAddByte(Player_num, data, &count);
2859 END_DATA(count, data, size);
2860
2861 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count);
2862}
2863
2864// Tell my clients about damage done to a player
2865// Server only

Callers 1

MultiDoDoneWorldStatesFunction · 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