mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add comment about when sv_join_vote_delay
doesn't apply
This commit is contained in:
parent
384668928b
commit
957844e234
|
@ -128,6 +128,9 @@ void CPlayer::Reset()
|
|||
|
||||
int64 Now = Server()->Tick();
|
||||
int64 TickSpeed = Server()->TickSpeed();
|
||||
// If the player joins within ten seconds of the server becoming
|
||||
// non-empty, allow them to vote immediately. This allows players to
|
||||
// vote after map changes or when they join an empty server.
|
||||
if(Now > GameServer()->m_NonEmptySince + 10 * TickSpeed)
|
||||
{
|
||||
m_FirstVoteTick = Now + g_Config.m_SvJoinVoteDelay * TickSpeed;
|
||||
|
|
Loading…
Reference in a new issue