Changeset 1499 for code/branches/network/src/network/Client.cc
- Timestamp:
- Jun 1, 2008, 1:44:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Client.cc
r1494 r1499 153 153 if(!isConnected) 154 154 return false; 155 if(client_connection.addPacket(pck_gen.chatMessage( message.c_str() )))156 return client_connection.sendPackets();155 return client_connection.addPacket(pck_gen.chatMessage( message.c_str() )); 156 //return client_connection.sendPackets(); 157 157 // send packets 158 158 return false; 159 }160 161 162 /**163 * Sends out all the packets queued by addXXX164 */165 bool Client::sendPackets(){166 if(!isConnected)167 return false;168 // send packets169 client_connection.sendPackets();170 return true;171 159 } 172 160 … … 215 203 }// otherwise we had no gamestate to load 216 204 gamestate.cleanup(); 217 if(!client_connection.sendPackets())218 COUT(3) << "Problem sending packets to server" << std::endl; 205 /*if(!client_connection.sendPackets()) 206 COUT(3) << "Problem sending packets to server" << std::endl;*/ 219 207 return; 220 208 }
Note: See TracChangeset
for help on using the changeset viewer.