Changeset 1752 for code/trunk/src/network/Client.cc
- Timestamp:
- Sep 9, 2008, 8:28:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/Client.cc
r1751 r1752 50 50 { 51 51 // SetConsoleCommandShortcut(Client, chat); 52 53 52 53 54 54 /** 55 55 * Constructor for the Client class … … 92 92 closeConnection(); 93 93 } 94 94 95 95 /** 96 96 * Establish the Connection to the Server … … 121 121 return client_connection.addPacket(packet); 122 122 } 123 123 124 124 bool Client::processChat(packet::Chat *message, unsigned int clientID){ 125 125 return message->process(); 126 126 } 127 127 128 128 /*bool Client::sendChat(packet::Chat *chat){ 129 129 chat->process(); … … 131 131 return p->send(); 132 132 }*/ 133 133 134 134 135 135 /** … … 173 173 if(gameStateID==GAMESTATEID_INITIAL) 174 174 if(gameStateFailure_){ 175 packet::Acknowledgement *ack = new packet::Acknowledgement( GAMESTATEID_INITIAL, 0);175 packet::Acknowledgement *ack = new packet::Acknowledgement((unsigned int)GAMESTATEID_INITIAL, 0); 176 176 if(!ack->send()) 177 177 COUT(3) << "could not (negatively) ack gamestate" << std::endl; 178 else 178 else 179 179 COUT(4) << "negatively acked a gamestate" << std::endl; 180 180 }
Note: See TracChangeset
for help on using the changeset viewer.