db issue
This commit is contained in:
@@ -299,7 +299,8 @@ ServerGame::InternalStartGame()
|
|||||||
|
|
||||||
if (playerData.size() >= 2) {
|
if (playerData.size() >= 2) {
|
||||||
// Set DB Backend.
|
// Set DB Backend.
|
||||||
if (GetGameData().gameType == GAME_TYPE_RANKING)
|
//if (GetGameData().gameType == GAME_TYPE_RANKING)
|
||||||
|
//if (true)
|
||||||
m_database = GetLobbyThread().GetDatabase();
|
m_database = GetLobbyThread().GetDatabase();
|
||||||
else
|
else
|
||||||
m_database.reset(new ServerDBNoAction);
|
m_database.reset(new ServerDBNoAction);
|
||||||
@@ -354,7 +355,6 @@ ServerGame::InternalStartGame()
|
|||||||
if(true)
|
if(true)
|
||||||
StoreLastGames(playerData);
|
StoreLastGames(playerData);
|
||||||
}
|
}
|
||||||
LOG_VERBOSE("before return.");
|
|
||||||
return playerData;
|
return playerData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user