mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Update game id when updating team score
This commit is contained in:
parent
a56fbbc340
commit
1c09798504
|
@ -747,8 +747,8 @@ bool CSqlScore::SaveTeamScoreThread(CSqlServer* pSqlServer, const CSqlData<void>
|
|||
if(pData->m_Time < Time)
|
||||
{
|
||||
str_format(aBuf, sizeof(aBuf),
|
||||
"UPDATE %s_teamrace SET Time='%.2f', Timestamp='%s', DDNet7=false WHERE ID = '%s';",
|
||||
pSqlServer->GetPrefix(), pData->m_Time, pData->m_aTimestamp, ID.c_str());
|
||||
"UPDATE %s_teamrace SET Time='%.2f', Timestamp='%s', DDNet7=false, GameID='%s' WHERE ID = '%s';",
|
||||
pSqlServer->GetPrefix(), pData->m_Time, pData->m_aTimestamp, pData->m_GameUuid, ID.c_str());
|
||||
dbg_msg("sql", "%s", aBuf);
|
||||
pSqlServer->executeSql(aBuf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue