]> git.mxchange.org Git - flightgear.git/commit
Pad T_PositionMsg to a multiple of 8 bytes, and check for messages that aren't.
authorTim Moore <timoore@redhat.com>
Thu, 15 Jan 2009 15:03:34 +0000 (16:03 +0100)
committerTim Moore <timoore@redhat.com>
Thu, 15 Jan 2009 15:03:34 +0000 (16:03 +0100)
commit45194f8e817b758116e2433b607fc894e7dd3c05
tree186ffa15969e9579185497eebdbf74e6102d3ca2
parente108eddc22125fb64cadfe8e9f1496ecd7cadf8c
Pad T_PositionMsg to a multiple of 8 bytes, and check for messages that aren't.

T_PositionMsg had different sizes on 32 and 64 bit systems, which is bad when
a struct is put directly into an network message.

Try to work around this difference in old clients still on the network.
src/MultiPlayer/mpmessages.hxx
src/MultiPlayer/multiplaymgr.cxx