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

Function MultiDoEndPlayerDeath

Descent3/multi.cpp:4845–4855  ·  view source on GitHub ↗

This player says he's done dying

Source from the content-addressed store, hash-verified

4843
4844// This player says he's done dying
4845void MultiDoEndPlayerDeath(uint8_t *data) {
4846 MULTI_ASSERT(Netgame.local_role == LR_SERVER, "Client in DoEndPlayerDeath!");
4847
4848 int count = 0;
4849
4850 SKIP_HEADER(data, &count);
4851 uint8_t slot = MultiGetByte(data, &count);
4852
4853 if (Players[slot].flags & PLAYER_FLAGS_DEAD || Players[slot].flags & PLAYER_FLAGS_DYING)
4854 MultiSendRenewPlayer(slot);
4855}
4856void GetServerGameTime() {
4857 MULTI_ASSERT(Netgame.local_role != LR_SERVER, "Server in GetServerGameTime!");
4858 uint8_t outdata[MAX_GAME_DATA_SIZE];

Callers 2

MultiSendEndPlayerDeathFunction · 0.85
MultiProcessDataFunction · 0.85

Calls 3

SKIP_HEADERFunction · 0.85
MultiGetByteFunction · 0.85
MultiSendRenewPlayerFunction · 0.85

Tested by

no test coverage detected