Adding backward compatibility for 0.6 clients. They cannot join games with > 7 players.

This commit is contained in:
lotodore
2009-04-11 12:32:54 +00:00
parent dae16675a4
commit 992dd4b618
5 changed files with 29 additions and 2 deletions
+4
View File
@@ -71,6 +71,9 @@ public:
void MarkActivityNotice();
unsigned GetAutoDisconnectTimerElapsedSec() const;
unsigned GetMaxNumPlayers() const;
void SetMaxNumPlayers(unsigned numPlayers);
private:
boost::shared_ptr<boost::asio::ip::tcp::socket> m_socket;
const SessionId m_id;
@@ -84,6 +87,7 @@ private:
boost::timers::portable::microsec_timer m_autoDisconnectTimer;
boost::shared_ptr<SenderInterface> m_sender;
SessionDataCallback &m_callback;
unsigned m_maxNumPlayers;
mutable boost::mutex m_dataMutex;
};