bugfix
This commit is contained in:
@@ -352,7 +352,7 @@ ServerGame::InternalStartGame()
|
|||||||
|
|
||||||
//if (GetGameData().gameType == GAME_TYPE_RANKING)
|
//if (GetGameData().gameType == GAME_TYPE_RANKING)
|
||||||
if(true)
|
if(true)
|
||||||
StoreLastGames();
|
StoreLastGames(playerData);
|
||||||
}
|
}
|
||||||
LOG_VERBOSE("before return.");
|
LOG_VERBOSE("before return.");
|
||||||
return playerData;
|
return playerData;
|
||||||
@@ -451,7 +451,7 @@ ServerGame::StoreAndResetRanking()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ServerGame::StoreLastGames()
|
ServerGame::StoreLastGames(const PlayerDataList &playerDataList)
|
||||||
{
|
{
|
||||||
// Store players lastgames in database.
|
// Store players lastgames in database.
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ protected:
|
|||||||
void SetPlayerPlace(unsigned playerId, int place);
|
void SetPlayerPlace(unsigned playerId, int place);
|
||||||
void ReplaceRankingPlayer(unsigned oldPlayerId, unsigned newPlayerId);
|
void ReplaceRankingPlayer(unsigned oldPlayerId, unsigned newPlayerId);
|
||||||
void StoreAndResetRanking();
|
void StoreAndResetRanking();
|
||||||
void StoreLastGames();
|
void StoreLastGames(const PlayerDataList &playerDataList);
|
||||||
void RemoveAutoLeavePlayers();
|
void RemoveAutoLeavePlayers();
|
||||||
void InternalEndGame();
|
void InternalEndGame();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user