Changeset 1088 for code/branches/network/src/network/PacketBuffer.cc
- Timestamp:
- Apr 17, 2008, 1:15:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/PacketBuffer.cc
r1008 r1088 62 62 // change this!!!!!!! 63 63 last->packet = ev->packet; 64 last->address = ev->peer->address;64 //last->address = ev->peer->address; 65 65 } else { 66 66 //insert a new element at the bottom … … 71 71 // save the packet to the new element 72 72 last->packet = ev->packet; 73 last->address = ev->peer->address;73 //last->address = ev->peer->address; 74 74 } 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; 76 78 } 77 79 80 //returns the first element in the list without deleting it but 81 //moving first pointer to next element 78 82 ENetPacket *PacketBuffer::pop() { 79 83 boost::mutex::scoped_lock lock(networkPacketBufferMutex);
Note: See TracChangeset
for help on using the changeset viewer.