Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 5, 2008, 11:32:42 PM (16 years ago)
Author:
scheusso
Message:

we use enetcallback for destroying packets now (unfortunately there are still some problems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Host.cc

    r1705 r1711  
    2828
    2929
    30 bool Host::chat(std::string& message){
    31   if(!instance_)
    32     return false;
    33   packet::Chat *c = new packet::Chat(message, getPlayerID());
    34   return instance_->sendChat(c);
    35 }
     30// bool Host::chat(std::string& message){
     31//   if(!instance_)
     32//     return false;
     33//   packet::Chat *c = new packet::Chat(message, getPlayerID());
     34//   return instance_->sendChat(c);
     35// }
    3636
    37 bool Host::receiveChat(network::packet::Chat *message, unsigned int clientID){
    38   if(instance_)
    39     return instance_->processChat(message, clientID);
    40   else
    41     return false;
    42 }
     37// bool Host::receiveChat(network::packet::Chat *message, unsigned int clientID){
     38//   if(instance_)
     39//     return instance_->processChat(message, clientID);
     40//   else
     41//     return false;
     42// }
    4343
    4444int Host::getPlayerID(){
Note: See TracChangeset for help on using the changeset viewer.