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

Function MultiBashPlayerShip

Descent3/multi.cpp:9423–9433  ·  view source on GitHub ↗

Tell a player what ship they are supposed to switch to if the one they chose isn't allowed.

Source from the content-addressed store, hash-verified

9421// Tell a player what ship they are supposed to switch to
9422// if the one they chose isn't allowed.
9423void MultiBashPlayerShip(int slot, char *ship) {
9424 uint8_t outdata[100];
9425 int count = 0;
9426 int size;
9427
9428 size = START_DATA(MP_BASHPLAYER_SHIP, outdata, &count);
9429 strcpy((char *)outdata + count, ship);
9430 count += strlen(ship) + 1;
9431 END_DATA(count, outdata, size);
9432 nw_SendReliable(NetPlayers[slot].reliable_socket, outdata, count, true);
9433}
9434
9435int ObjInitTypeSpecific(object *objp, bool reinitializing);
9436

Callers 1

MultiDoMyInfoFunction · 0.85

Calls 3

START_DATAFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected