Add comment about when sv_join_vote_delay doesn't apply

This commit is contained in:
heinrich5991 2016-01-21 00:09:11 +01:00
parent 384668928b
commit 957844e234

View file

@ -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;