Major redesign: The game can not be left without disconnecting from the server. This happens if a player is kicked, if he wishes to leave, or for other reasons. Error packets from the server will always cause a disconnect, however.
If joining a game fails, there is a proper failure packet now.
This commit is contained in:
@@ -80,10 +80,9 @@ protected:
|
||||
void AddComputerPlayer(boost::shared_ptr<PlayerData> player);
|
||||
void ResetComputerPlayerList();
|
||||
|
||||
void RemoveSession(SessionWrapper session);
|
||||
void SessionError(SessionWrapper session, int errorCode);
|
||||
void CloseSessionDelayed(SessionWrapper session);
|
||||
void SendError(SOCKET s, int errorCode);
|
||||
void RejectSession(SessionWrapper session);
|
||||
void MoveSessionToLobby(SessionWrapper session, int reason);
|
||||
|
||||
void RemoveDisconnectedPlayers();
|
||||
size_t GetCurNumberOfPlayers() const;
|
||||
|
||||
Reference in New Issue
Block a user