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

Method SendNewTeamName

netgames/dmfc/dmfcpackets.cpp:660–672  ·  view source on GitHub ↗

DMFCBase::SendNewTeamName Tells the clients about a team's new name

Source from the content-addressed store, hash-verified

658//
659// Tells the clients about a team's new name
660void DMFCBase::SendNewTeamName(int team) {
661 if (GetLocalRole() != LR_SERVER)
662 return;
663
664 int count = 0;
665 uint8_t data[MAX_GAME_DATA_SIZE];
666 StartPacket(data, SPID_NEWTEAMNAME, &count);
667
668 MultiAddByte(team, data, &count);
669 MultiAddString(DMFC_team_names[team], data, &count);
670
671 SendPacket(data, count, SP_ALL);
672}
673
674// DMFCBase::ReceiveNewTeamName
675//

Callers

nothing calls this directly

Calls 2

MultiAddByteFunction · 0.85
MultiAddStringFunction · 0.85

Tested by

no test coverage detected