summaryrefslogtreecommitdiff
path: root/source/q_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/q_msg.h')
-rw-r--r--source/q_msg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/q_msg.h b/source/q_msg.h
index 5f863e3..0b3de53 100644
--- a/source/q_msg.h
+++ b/source/q_msg.h
@@ -100,7 +100,6 @@ void MSG_WriteBits( int value, int bits );
int MSG_WriteDeltaUsercmd( const usercmd_t *from, const usercmd_t *cmd, int version );
int MSG_WriteDeltaUsercmd_Enhanced( const usercmd_t *from, const usercmd_t *cmd );
void MSG_WriteDir ( const vec3_t vector);
-void MSG_WriteData( const void *data, int length );
void MSG_WriteDeltaEntity( const entity_state_t *from, const entity_state_t *to, msgEsFlags_t flags );
void MSG_WriteDeltaPlayerstate_Default( const player_state_t *from, const player_state_t *to );
int MSG_WriteDeltaPlayerstate_Enhanced( const player_state_t *from, player_state_t *to, msgPsFlags_t flags );
@@ -108,6 +107,10 @@ void MSG_WriteDeltaPlayerstate_Packet( const player_state_t *from, const player_
void MSG_FlushTo( sizebuf_t *dest );
void MSG_Printf( const char *fmt, ... ) q_printf( 1, 2 );
+static inline void MSG_WriteData( const void *data, int length ) {
+ memcpy( SZ_GetSpace( &msg_write, length ), data, length );
+}
+
void MSG_BeginReading( void );
int MSG_ReadChar( void );
int MSG_ReadByte( void );