2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
#include "svc_fixangle.h"
|
2015-06-25 05:59:39 +02:00
|
|
|
#include "base/bitfile.h"
|
2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
namespace NetHandlers
|
|
|
|
{
|
2015-06-19 02:23:26 +02:00
|
|
|
bool SVC_FixAngle_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::SVC_FixAngle* data)
|
2015-05-15 03:36:57 +02:00
|
|
|
{
|
|
|
|
data->relative = bitbuf.ReadOneBit() != 0;
|
2015-07-14 05:19:55 +02:00
|
|
|
data->angle.x = bitbuf.ReadBitAngle(16);
|
|
|
|
data->angle.y = bitbuf.ReadBitAngle(16);
|
|
|
|
data->angle.z = bitbuf.ReadBitAngle(16);
|
2015-05-15 03:36:57 +02:00
|
|
|
return !bitbuf.IsOverflowed();
|
|
|
|
}
|
|
|
|
}
|