mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8715 from furo321/birthday-confetti
Spawn a confetti when connecting on your DDNet birthday
This commit is contained in:
commit
ef6fd80bc5
|
@ -936,6 +936,8 @@ void CPlayer::ProcessScoreResult(CScorePlayerResult &Result)
|
||||||
Server()->ClientName(m_ClientId), Birthday, Birthday > 1 ? "s" : "");
|
Server()->ClientName(m_ClientId), Birthday, Birthday > 1 ? "s" : "");
|
||||||
GameServer()->SendBroadcast(aBuf, m_ClientId);
|
GameServer()->SendBroadcast(aBuf, m_ClientId);
|
||||||
m_BirthdayAnnounced = true;
|
m_BirthdayAnnounced = true;
|
||||||
|
|
||||||
|
GameServer()->CreateFinishConfetti(GetCharacter()->m_Pos, GetCharacter()->TeamMask());
|
||||||
}
|
}
|
||||||
GameServer()->SendRecord(m_ClientId);
|
GameServer()->SendRecord(m_ClientId);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue