Set place for all players (not only first place) in ranked games. Simple version (all players who leave/lose at the same time get the same place).

This commit is contained in:
lotodore
2010-08-28 14:34:02 +00:00
parent b6723e5ebf
commit 698432279f
3 changed files with 44 additions and 3 deletions
+2 -1
View File
@@ -65,7 +65,7 @@ public:
void SendToAllPlayers(boost::shared_ptr<NetPacket> packet, SessionData::State state);
void SendToAllButOnePlayers(boost::shared_ptr<NetPacket> packet, SessionId except, SessionData::State state);
void RemoveAllSessions();
void RemoveAllSessions();
bool IsPasswordProtected() const;
bool CheckPassword(const std::string &password) const;
@@ -106,6 +106,7 @@ protected:
void InternalStartGame();
void InitRankingMap(const PlayerDataList &playerDataList);
void UpdateRankingMap();
void SetPlayerPlace(unsigned playerId, int place);
void InternalEndGame();