mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
singular player in team start message
This commit is contained in:
parent
bdc309ad02
commit
7c966bebc3
|
@ -83,13 +83,17 @@ void CGameTeams::OnCharacterStart(int ClientID)
|
|||
{
|
||||
ChangeTeamState(m_Core.Team(ClientID), TEAMSTATE_STARTED);
|
||||
|
||||
int NumPlayers = Count(m_Core.Team(ClientID));
|
||||
|
||||
char aBuf[512];
|
||||
str_format(
|
||||
aBuf,
|
||||
sizeof(aBuf),
|
||||
"Team %d started with these %d players: ",
|
||||
"Team %d started with %d player%s: ",
|
||||
m_Core.Team(ClientID),
|
||||
Count(m_Core.Team(ClientID)));
|
||||
NumPlayers,
|
||||
NumPlayers == 1 ? "" : "s");
|
||||
|
||||
|
||||
bool First = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue