diff options
author | David Jones <david@gogledd.cymru> | 2015-08-25 21:23:05 +0100 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-08-25 18:33:52 -0400 |
commit | 34b7a147dcf9831f3b4d81599c473ba01ff5da00 (patch) | |
tree | e7a95bf333d782ebde897b25070c5d997174e2f5 /src/network | |
parent | 2480f2d06fe50295184a60d6659378f9a5d57065 (diff) | |
download | minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.gz minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.bz2 minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.zip |
Change i++ to ++i
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/connection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp index 10f0d5543..d73d4ba17 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -294,7 +294,7 @@ BufferedPacket ReliablePacketBuffer::popSeqnum(u16 seqnum) RPBSearchResult next = r; - next++; + ++next; if (next != notFound()) { u16 s = readU16(&(next->data[BASE_HEADER_SIZE+1])); m_oldest_non_answered_ack = s; @@ -358,7 +358,7 @@ void ReliablePacketBuffer::insert(BufferedPacket &p,u16 next_expected) /* this is true e.g. on wrap around */ if (seqnum < next_expected) { while(((s < seqnum) || (s >= next_expected)) && (i != m_list.end())) { - i++; + ++i; if (i != m_list.end()) s = readU16(&(i->data[BASE_HEADER_SIZE+1])); } @@ -367,7 +367,7 @@ void ReliablePacketBuffer::insert(BufferedPacket &p,u16 next_expected) else { while(((s < seqnum) && (s >= next_expected)) && (i != m_list.end())) { - i++; + ++i; if (i != m_list.end()) s = readU16(&(i->data[BASE_HEADER_SIZE+1])); } @@ -1760,7 +1760,7 @@ void ConnectionSendThread::disconnect() for (std::list<u16>::iterator i = peerids.begin(); i != peerids.end(); - i++) + ++i) { sendAsPacket(*i, 0,data,false); } @@ -1840,7 +1840,7 @@ void ConnectionSendThread::sendToAll(u8 channelnum, SharedBuffer<u8> data) for (std::list<u16>::iterator i = peerids.begin(); i != peerids.end(); - i++) + ++i) { send(*i, channelnum, data); } @@ -1852,7 +1852,7 @@ void ConnectionSendThread::sendToAllReliable(ConnectionCommand &c) for (std::list<u16>::iterator i = peerids.begin(); i != peerids.end(); - i++) + ++i) { PeerHelper peer = m_connection->getPeerNoEx(*i); |