MCPcopy Create free account
hub / github.com/JACoders/OpenJK / MSG_ReadShort

Function MSG_ReadShort

code/qcommon/msg.cpp:297–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297int MSG_ReadShort( msg_t *msg ) {
298 int c;
299
300 if ( msg->readcount+2 > msg->cursize ) {
301 c = -1;
302 } else {
303 c = MSG_ReadBits( msg, 16 );
304 }
305
306 return c;
307}
308
309static int MSG_ReadSShort( msg_t *msg ) {
310 int c;

Callers 4

MSG_ReadDeltaPlayerstateFunction · 0.70
Netchan_ProcessFunction · 0.70
CL_ParseGamestateFunction · 0.50
SV_PacketEventFunction · 0.50

Calls 1

MSG_ReadBitsFunction · 0.70

Tested by

no test coverage detected