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

Function MSG_WriteShort

code/qcommon/msg.cpp:233–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void MSG_WriteShort( msg_t *sb, int c ) {
234#ifdef PARANOID
235 if (c < ((short)0x8000) || c > (short)0x7fff)
236 Com_Error (ERR_FATAL, "MSG_WriteShort: range error");
237#endif
238
239 MSG_WriteBits( sb, c, 16 );
240}
241
242static void MSG_WriteSShort( msg_t *sb, int c ) {
243 MSG_WriteBits( sb, c, -16 );

Callers 3

Netchan_TransmitFunction · 0.70
SV_SendClientGameStateFunction · 0.50

Calls 2

Com_ErrorFunction · 0.70
MSG_WriteBitsFunction · 0.70

Tested by

no test coverage detected