debug
This commit is contained in:
@@ -235,6 +235,7 @@ ServerDBThread::SetGamePlayerPlace(unsigned requestId, DB_id playerId, unsigned
|
||||
void
|
||||
ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vector<long> lastGames)
|
||||
{
|
||||
LOG_ERROR("ServerDBThread::SetPlayerLastGames() entered.");
|
||||
// The game id param is added later (during init of the async op), because it may be unknown.
|
||||
string lastGamesFieldValue = "1,2,3";
|
||||
list<string> params;
|
||||
|
||||
@@ -463,9 +463,10 @@ ServerGame::StoreLastGames(const PlayerDataList &playerDataList)
|
||||
LOG_ERROR("TimeStamp stored: " << tmpPlayer->GetPlayerLastGames().back());
|
||||
std::vector<long> lastGames = tmpPlayer->GetPlayerLastGames();
|
||||
LOG_ERROR("Ready for storing vector for player " << tmpPlayer->GetUniqueId() << " - lastGameTs " << lastGames.back());
|
||||
//if(tmpPlayer->GetUniqueId() != DB_ID_INVALID){
|
||||
if(tmpPlayer->GetUniqueId() != DB_ID_INVALID){
|
||||
LOG_ERROR("ID != DB_ID_INVALID ... calling SetPlayerLastGames()...");
|
||||
GetDatabase().SetPlayerLastGames(GetId(), tmpPlayer->GetUniqueId(), lastGames);
|
||||
//}
|
||||
}
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user