DMFCBase::SendNewTeamName Tells the clients about a team's new name
| 658 | // |
| 659 | // Tells the clients about a team's new name |
| 660 | void 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 | // |
nothing calls this directly
no test coverage detected