Fixed not writing delta byte in svc_packetentities

This commit is contained in:
Jordan Cristiano 2015-06-14 20:51:36 -04:00
parent 91e63d3f39
commit 7cc79178e7

View File

@ -32,8 +32,13 @@ namespace NetHandlers
bitbuf.WriteUBitLong(data->maxEntries, MAX_EDICT_BITS); bitbuf.WriteUBitLong(data->maxEntries, MAX_EDICT_BITS);
if (data->isDelta) if (data->isDelta)
{ {
bitbuf.WriteOneBit(1);
bitbuf.WriteLong(data->deltaFromTick); bitbuf.WriteLong(data->deltaFromTick);
} }
else
{
bitbuf.WriteOneBit(0);
}
bitbuf.WriteUBitLong(data->baselineIndex, 1); bitbuf.WriteUBitLong(data->baselineIndex, 1);
bitbuf.WriteUBitLong(data->numUpdatedEntries, MAX_EDICT_BITS); bitbuf.WriteUBitLong(data->numUpdatedEntries, MAX_EDICT_BITS);
bitbuf.WriteUBitLong(data->dataLengthInBits, DELTASIZE_BITS); bitbuf.WriteUBitLong(data->dataLengthInBits, DELTASIZE_BITS);