mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #118 from XXLTomate/ddracePullSqlFix
fixing sql score by @Laxa unrevised untested @XXLTomate thanks but please test and maintain i didn't even see the changed code
This commit is contained in:
commit
b5f8738acd
|
@ -350,6 +350,7 @@ void CSqlScore::ShowRankThread(void *pUser)
|
||||||
pData->m_pSqlData->m_pResults->next();
|
pData->m_pSqlData->m_pResults->next();
|
||||||
int since = (int)pData->m_pSqlData->m_pResults->getInt("Ago");
|
int since = (int)pData->m_pSqlData->m_pResults->getInt("Ago");
|
||||||
char agoString[40];
|
char agoString[40];
|
||||||
|
mem_zero(agoString, sizeof(agoString));
|
||||||
agoTimeToString(since,agoString);
|
agoTimeToString(since,agoString);
|
||||||
|
|
||||||
float Time = (float)pData->m_pSqlData->m_pResults->getDouble("Time");
|
float Time = (float)pData->m_pSqlData->m_pResults->getDouble("Time");
|
||||||
|
|
Loading…
Reference in a new issue