Skip to content

Commit

Permalink
Allow 4 spectator mode changes per second
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Oct 3, 2014
1 parent 9691293 commit 8c45d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/gamecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
if (!Server()->ReverseTranslate(pMsg->m_SpectatorID, ClientID))
return;

if((g_Config.m_SvSpamprotection && pPlayer->m_LastSetSpectatorMode && pPlayer->m_LastSetSpectatorMode+Server()->TickSpeed() > Server()->Tick()))
if((g_Config.m_SvSpamprotection && pPlayer->m_LastSetSpectatorMode && pPlayer->m_LastSetSpectatorMode+Server()->TickSpeed()/4 > Server()->Tick()))
return;

pPlayer->m_LastSetSpectatorMode = Server()->Tick();
Expand Down

0 comments on commit 8c45d88

Please sign in to comment.