mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix return values for loading saves
Introduced by an incorrect rebase.
This commit is contained in:
parent
83da81e8c3
commit
44437eed39
|
@ -1780,7 +1780,7 @@ bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData
|
|||
if(!Found)
|
||||
{
|
||||
str_copy(pResult->m_aMessage, "You don't belong to this team", sizeof(pResult->m_aMessage));
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
int Since = pSqlServer->GetInt(2);
|
||||
|
@ -1789,7 +1789,7 @@ bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData
|
|||
str_format(pResult->m_aMessage, sizeof(pResult->m_aMessage),
|
||||
"You have to wait %d seconds until you can load this savegame",
|
||||
g_Config.m_SvSaveGamesDelay - Since);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CanLoad = pResult->m_SavedTeam.MatchPlayers(
|
||||
|
|
Loading…
Reference in a new issue