Don't use runningPlayerLists in server, as all in players are not in these lists. Fixed game state in lobby for players joining after a game started.

This commit is contained in:
lotodore
2007-09-29 22:50:57 +00:00
parent 27b82a4260
commit 879cac4bbc
5 changed files with 27 additions and 15 deletions
+3 -1
View File
@@ -66,6 +66,8 @@ public:
PlayerIdList GetPlayerIdList() const;
bool IsPlayerConnected(const std::string &name) const;
bool IsRunning() const;
protected:
typedef std::deque<SessionWrapper> SessionQueue;
@@ -129,7 +131,7 @@ private:
GameData m_gameData;
StartData m_startData;
std::auto_ptr<Game> m_game;
boost::shared_ptr<Game> m_game;
const u_int32_t m_id;
const std::string m_name;
const std::string m_password;