simplified ResetNumJoinsPerPlayer - e.g. removed the function
This commit is contained in:
@@ -457,7 +457,7 @@ ServerGame::InternalEndGame()
|
|||||||
{
|
{
|
||||||
StoreAndResetRanking();
|
StoreAndResetRanking();
|
||||||
m_game.reset();
|
m_game.reset();
|
||||||
ResetNumJoinsPerPlayer();
|
m_numJoinsPerPlayer.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -1186,9 +1186,3 @@ ServerGame::GetNumJoinsPerPlayer(const std::string &playerName)
|
|||||||
}
|
}
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ServerGame::ResetNumJoinsPerPlayer()
|
|
||||||
{
|
|
||||||
m_numJoinsPerPlayer.clear();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ public:
|
|||||||
|
|
||||||
void AddPlayerToNumJoinsPerPlayer(const std::string &playerName);
|
void AddPlayerToNumJoinsPerPlayer(const std::string &playerName);
|
||||||
int GetNumJoinsPerPlayer(const std::string &playerName);
|
int GetNumJoinsPerPlayer(const std::string &playerName);
|
||||||
void ResetNumJoinsPerPlayer();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user