(svn r20937) -Codechange: move some variables from client/server to server only

This commit is contained in:
rubidium
2010-10-15 20:29:59 +00:00
parent 332a1bfdea
commit a0f7099a7d
4 changed files with 9 additions and 9 deletions

View File

@@ -27,7 +27,6 @@
*/
NetworkGameSocketHandler::NetworkGameSocketHandler(SOCKET s)
{
this->status = STATUS_INACTIVE;
this->sock = s;
this->last_frame = _frame_counter;
this->last_frame_server = _frame_counter;

View File

@@ -163,15 +163,10 @@ protected:
NetworkGameSocketHandler(SOCKET s);
public:
ClientID client_id; ///< Client identifier
uint32 last_frame; ///< Last frame we have executed
uint32 last_frame_server; ///< Last frame the server has executed
byte lag_test; ///< Byte used for lag-testing the client
ClientStatus status; ///< Status of this client
ClientID client_id; ///< Client identifier
uint32 last_frame; ///< Last frame we have executed
uint32 last_frame_server; ///< Last frame the server has executed
CommandQueue incoming_queue; ///< The command-queue awaiting handling
CommandQueue outgoing_queue; ///< The command-queue awaiting delivery
NetworkRecvStatus CloseConnection(bool error = true);
virtual NetworkRecvStatus CloseConnection(NetworkRecvStatus status) = 0;