larku / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
60 stars 27 forks source link

Revert patch causing timestamps to be received with the incorrect endianness #26

Open spencercw opened 8 years ago

spencercw commented 8 years ago

Reverting https://github.com/larku/RakNet/pull/15

My assumption is the original author was writing the timestamp with the wrong endianness in the first place, which is easily done when not using bitstreams (see http://www.jenkinssoftware.com/raknet/manual/creatingpackets.html). The original patch causes the endianness to be inverted twice when using bitstreams, breaking reception of these timestamps.