Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 8, 2008, 1:36:32 AM (16 years ago)
Author:
scheusso
Message:

further fixes (diff/undiff not working yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/packet/Packet.cc

    r1735 r1739  
    113113    packetMap_[enetPacket_] = this;
    114114  }
    115   /*switch( *(ENUM::Type *)(data_ + _PACKETID) )
     115#ifndef NDEBUG
     116  switch( *(ENUM::Type *)(data_ + _PACKETID) )
    116117  {
    117118    case ENUM::Acknowledgement:
     
    120121    case ENUM::Gamestate:
    121122    case ENUM::Welcome:
    122       COUT(3) << "welcome" << std::endl;
    123       p = new Welcome( data, clientID );
     123      break;
    124124    default:
    125125      assert(0); //TODO: repair this
    126126      break;
    127   }*/
     127  }
     128#endif
    128129  network::Host::addPacket( enetPacket_, clientID_);
    129130  enetPacket_ = 0; // otherwise we have a double free because enet already handles the deallocation of the packet
Note: See TracChangeset for help on using the changeset viewer.