engine: client: use existing engine functions for some client API functions
This commit is contained in:
parent
c906aa0106
commit
626c5e44f6
4 changed files with 7 additions and 52 deletions
|
@ -373,7 +373,7 @@ CL_WriteDemoUserMessage
|
||||||
Dumps the user message (demoaction)
|
Dumps the user message (demoaction)
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
void CL_WriteDemoUserMessage( const byte *buffer, size_t size )
|
void GAME_EXPORT CL_WriteDemoUserMessage( int size, byte *buffer )
|
||||||
{
|
{
|
||||||
if( !cls.demorecording || cls.demowaiting )
|
if( !cls.demorecording || cls.demowaiting )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2229,4 +2229,3 @@ void CL_ThinkParticle( double frametime, particle_t *p )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3348,28 +3348,6 @@ DemoApi implementation
|
||||||
|
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
=================
|
|
||||||
Demo_IsRecording
|
|
||||||
|
|
||||||
=================
|
|
||||||
*/
|
|
||||||
static int GAME_EXPORT Demo_IsRecording( void )
|
|
||||||
{
|
|
||||||
return cls.demorecording;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
=================
|
|
||||||
Demo_IsPlayingback
|
|
||||||
|
|
||||||
=================
|
|
||||||
*/
|
|
||||||
static int GAME_EXPORT Demo_IsPlayingback( void )
|
|
||||||
{
|
|
||||||
return cls.demoplayback;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
Demo_IsTimeDemo
|
Demo_IsTimeDemo
|
||||||
|
@ -3381,17 +3359,6 @@ static int GAME_EXPORT Demo_IsTimeDemo( void )
|
||||||
return cls.timedemo;
|
return cls.timedemo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
=================
|
|
||||||
Demo_WriteBuffer
|
|
||||||
|
|
||||||
=================
|
|
||||||
*/
|
|
||||||
static void GAME_EXPORT Demo_WriteBuffer( int size, byte *buffer )
|
|
||||||
{
|
|
||||||
CL_WriteDemoUserMessage( buffer, size );
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
NetworkApi implementation
|
NetworkApi implementation
|
||||||
|
@ -3577,17 +3544,6 @@ static int GAME_EXPORT NetAPI_CompareAdr( netadr_t *a, netadr_t *b )
|
||||||
return NET_CompareAdr( *a, *b );
|
return NET_CompareAdr( *a, *b );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
=================
|
|
||||||
NetAPI_StringToAdr
|
|
||||||
|
|
||||||
=================
|
|
||||||
*/
|
|
||||||
static int GAME_EXPORT NetAPI_StringToAdr( char *s, netadr_t *a )
|
|
||||||
{
|
|
||||||
return NET_StringToAdr( s, a );
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
NetAPI_ValueForKey
|
NetAPI_ValueForKey
|
||||||
|
@ -3795,10 +3751,10 @@ static event_api_t gEventApi =
|
||||||
|
|
||||||
static demo_api_t gDemoApi =
|
static demo_api_t gDemoApi =
|
||||||
{
|
{
|
||||||
Demo_IsRecording,
|
(void *)CL_IsRecordDemo,
|
||||||
Demo_IsPlayingback,
|
(void *)CL_IsPlaybackDemo,
|
||||||
Demo_IsTimeDemo,
|
Demo_IsTimeDemo,
|
||||||
Demo_WriteBuffer,
|
CL_WriteDemoUserMessage,
|
||||||
};
|
};
|
||||||
|
|
||||||
net_api_t gNetApi =
|
net_api_t gNetApi =
|
||||||
|
@ -3810,8 +3766,8 @@ net_api_t gNetApi =
|
||||||
NetAPI_CancelAllRequests,
|
NetAPI_CancelAllRequests,
|
||||||
NetAPI_AdrToString,
|
NetAPI_AdrToString,
|
||||||
NetAPI_CompareAdr,
|
NetAPI_CompareAdr,
|
||||||
NetAPI_StringToAdr,
|
(void *)NET_StringToAdr,
|
||||||
NetAPI_ValueForKey,
|
Info_ValueForKey,
|
||||||
NetAPI_RemoveKey,
|
NetAPI_RemoveKey,
|
||||||
NetAPI_SetValueForKey,
|
NetAPI_SetValueForKey,
|
||||||
};
|
};
|
||||||
|
|
|
@ -767,7 +767,7 @@ void CL_StartupDemoHeader( void );
|
||||||
void CL_DrawDemoRecording( void );
|
void CL_DrawDemoRecording( void );
|
||||||
void CL_WriteDemoUserCmd( int cmdnumber );
|
void CL_WriteDemoUserCmd( int cmdnumber );
|
||||||
void CL_WriteDemoMessage( qboolean startup, int start, sizebuf_t *msg );
|
void CL_WriteDemoMessage( qboolean startup, int start, sizebuf_t *msg );
|
||||||
void CL_WriteDemoUserMessage( const byte *buffer, size_t size );
|
void CL_WriteDemoUserMessage( int size, byte *buffer );
|
||||||
qboolean CL_DemoReadMessage( byte *buffer, size_t *length );
|
qboolean CL_DemoReadMessage( byte *buffer, size_t *length );
|
||||||
void CL_DemoInterpolateAngles( void );
|
void CL_DemoInterpolateAngles( void );
|
||||||
void CL_CheckStartupDemos( void );
|
void CL_CheckStartupDemos( void );
|
||||||
|
|
Loading…
Add table
Reference in a new issue