demboyz/demboyz/netmessages/net_signonstate.cpp

15 lines
438 B
C++
Raw Normal View History

#include "net_signonstate.h"
#include "base/bitfile.h"
namespace NetHandlers
{
bool Net_SignonState_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::Net_SignonState* data)
{
2015-05-28 04:51:30 +02:00
data->signonState = bitbuf.ReadByte();
data->spawnCount = bitbuf.ReadLong();
//assert(signonState >= SIGNONSTATE_NONE && signonState <= SIGNONSTATE_CHANGELEVEL);
return !bitbuf.IsOverflowed();
}
}