Fix compile

This commit is contained in:
def 2014-05-19 01:59:35 +02:00
parent 4c87cedd4d
commit 442edc4692

View file

@ -430,11 +430,13 @@ void CSqlScore::MapVoteThread(void *pUser)
CPlayer *pPlayer = pData->m_pSqlData->m_pGameServer->m_apPlayers[pData->m_ClientID]; CPlayer *pPlayer = pData->m_pSqlData->m_pGameServer->m_apPlayers[pData->m_ClientID];
int64 Now = pData->m_pSqlData->Server()->Tick();
int Timeleft = 0;
if(!pPlayer) if(!pPlayer)
goto end; goto end;
int64 Now = pData->m_pSqlData->Server()->Tick(); Timeleft = pPlayer->m_LastVoteCall + pData->m_pSqlData->Server()->TickSpeed()*g_Config.m_SvVoteDelay - Now;
int Timeleft = pPlayer->m_LastVoteCall + pData->m_pSqlData->Server()->TickSpeed()*g_Config.m_SvVoteDelay - Now;
if(pData->m_pSqlData->m_pResults->rowsCount() != 1) if(pData->m_pSqlData->m_pResults->rowsCount() != 1)
{ {