Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2008, 1:15:58 PM (16 years ago)
Author:
dumenim
Message:

catched some return values

File:
1 edited

Legend:

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

    r1008 r1088  
    6262      // change this!!!!!!!
    6363      last->packet = ev->packet;
    64       last->address = ev->peer->address;
     64      //last->address = ev->peer->address;
    6565    } else {
    6666      //insert a new element at the bottom
     
    7171      // save the packet to the new element
    7272      last->packet = ev->packet;
    73       last->address = ev->peer->address;
     73      //last->address = ev->peer->address;
    7474    }
    75     return true;
     75    // pseudo bugfix: added a return false statement for error handling
     76    if ( last->packet == ev->packet ) return true;
     77    return false;
    7678  }
    7779
     80  //returns the first element in the list without deleting it but
     81  //moving first pointer to next element
    7882  ENetPacket *PacketBuffer::pop() {
    7983    boost::mutex::scoped_lock lock(networkPacketBufferMutex);
Note: See TracChangeset for help on using the changeset viewer.