mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix compile
This commit is contained in:
parent
4c87cedd4d
commit
442edc4692
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue