Browse Source

engine: client: clean up client.h from unused function prototypes, or move them to appropriate C file

master
Alibek Omarov 11 months ago
parent
commit
0b24810927
  1. 2
      engine/client/cl_demo.c
  2. 2
      engine/client/cl_events.c
  3. 2
      engine/client/cl_frame.c
  4. 34
      engine/client/cl_game.c
  5. 10
      engine/client/cl_gameui.c
  6. 2
      engine/client/cl_main.c
  7. 30
      engine/client/cl_pmove.c
  8. 4
      engine/client/cl_scrn.c
  9. 4
      engine/client/cl_tent.c
  10. 41
      engine/client/client.h
  11. 11
      engine/client/console.c

2
engine/client/cl_demo.c

@ -438,7 +438,7 @@ CL_StopRecord
finish recording demo finish recording demo
================= =================
*/ */
void CL_StopRecord( void ) static void CL_StopRecord( void )
{ {
int i, curpos; int i, curpos;
float stoptime; float stoptime;

2
engine/client/cl_events.c

@ -350,7 +350,7 @@ CL_QueueEvent
============= =============
*/ */
void CL_QueueEvent( int flags, int index, float delay, event_args_t *args ) static void CL_QueueEvent( int flags, int index, float delay, event_args_t *args )
{ {
event_info_t *ei; event_info_t *ei;

2
engine/client/cl_frame.c

@ -585,7 +585,7 @@ CL_ProcessPlayerState
process player states after the new packet has received process player states after the new packet has received
================= =================
*/ */
void CL_ProcessPlayerState( int playerindex, entity_state_t *state ) static void CL_ProcessPlayerState( int playerindex, entity_state_t *state )
{ {
entity_state_t *ps; entity_state_t *ps;

34
engine/client/cl_game.c

@ -1599,7 +1599,7 @@ CL_FillRGBA
============= =============
*/ */
void GAME_EXPORT CL_FillRGBA( int x, int y, int w, int h, int r, int g, int b, int a ) static void GAME_EXPORT CL_FillRGBA( int x, int y, int w, int h, int r, int g, int b, int a )
{ {
float _x = x, _y = y, _w = w, _h = h; float _x = x, _y = y, _w = w, _h = h;
@ -2127,7 +2127,7 @@ pfnGetViewModel
============= =============
*/ */
cl_entity_t* GAME_EXPORT CL_GetViewModel( void ) static cl_entity_t* GAME_EXPORT CL_GetViewModel( void )
{ {
return &clgame.viewent; return &clgame.viewent;
} }
@ -2476,6 +2476,36 @@ static physent_t *pfnGetVisent( int idx )
return NULL; return NULL;
} }
static int GAME_EXPORT CL_TestLine( const vec3_t start, const vec3_t end, int flags )
{
return PM_TestLineExt( clgame.pmove, clgame.pmove->physents, clgame.pmove->numphysent, start, end, flags );
}
/*
=============
CL_PushTraceBounds
=============
*/
static void GAME_EXPORT CL_PushTraceBounds( int hullnum, const float *mins, const float *maxs )
{
hullnum = bound( 0, hullnum, 3 );
VectorCopy( mins, clgame.pmove->player_mins[hullnum] );
VectorCopy( maxs, clgame.pmove->player_maxs[hullnum] );
}
/*
=============
CL_PopTraceBounds
=============
*/
static void GAME_EXPORT CL_PopTraceBounds( void )
{
memcpy( clgame.pmove->player_mins, host.player_mins, sizeof( host.player_mins ));
memcpy( clgame.pmove->player_maxs, host.player_maxs, sizeof( host.player_maxs ));
}
/* /*
============= =============
pfnSetTraceHull pfnSetTraceHull

10
engine/client/cl_gameui.c

@ -542,7 +542,7 @@ pfnPIC_Set
========= =========
*/ */
void GAME_EXPORT pfnPIC_Set( HIMAGE hPic, int r, int g, int b, int a ) static void GAME_EXPORT pfnPIC_Set( HIMAGE hPic, int r, int g, int b, int a )
{ {
gameui.ds.gl_texturenum = hPic; gameui.ds.gl_texturenum = hPic;
r = bound( 0, r, 255 ); r = bound( 0, r, 255 );
@ -558,7 +558,7 @@ pfnPIC_Draw
========= =========
*/ */
void GAME_EXPORT pfnPIC_Draw( int x, int y, int width, int height, const wrect_t *prc ) static void GAME_EXPORT pfnPIC_Draw( int x, int y, int width, int height, const wrect_t *prc )
{ {
ref.dllFuncs.GL_SetRenderMode( kRenderNormal ); ref.dllFuncs.GL_SetRenderMode( kRenderNormal );
PIC_DrawGeneric( x, y, width, height, prc ); PIC_DrawGeneric( x, y, width, height, prc );
@ -570,7 +570,7 @@ pfnPIC_DrawTrans
========= =========
*/ */
void GAME_EXPORT pfnPIC_DrawTrans( int x, int y, int width, int height, const wrect_t *prc ) static void GAME_EXPORT pfnPIC_DrawTrans( int x, int y, int width, int height, const wrect_t *prc )
{ {
ref.dllFuncs.GL_SetRenderMode( kRenderTransTexture ); ref.dllFuncs.GL_SetRenderMode( kRenderTransTexture );
PIC_DrawGeneric( x, y, width, height, prc ); PIC_DrawGeneric( x, y, width, height, prc );
@ -582,7 +582,7 @@ pfnPIC_DrawHoles
========= =========
*/ */
void GAME_EXPORT pfnPIC_DrawHoles( int x, int y, int width, int height, const wrect_t *prc ) static void GAME_EXPORT pfnPIC_DrawHoles( int x, int y, int width, int height, const wrect_t *prc )
{ {
ref.dllFuncs.GL_SetRenderMode( kRenderTransAlpha ); ref.dllFuncs.GL_SetRenderMode( kRenderTransAlpha );
PIC_DrawGeneric( x, y, width, height, prc ); PIC_DrawGeneric( x, y, width, height, prc );
@ -594,7 +594,7 @@ pfnPIC_DrawAdditive
========= =========
*/ */
void GAME_EXPORT pfnPIC_DrawAdditive( int x, int y, int width, int height, const wrect_t *prc ) static void GAME_EXPORT pfnPIC_DrawAdditive( int x, int y, int width, int height, const wrect_t *prc )
{ {
ref.dllFuncs.GL_SetRenderMode( kRenderTransAdd ); ref.dllFuncs.GL_SetRenderMode( kRenderTransAdd );
PIC_DrawGeneric( x, y, width, height, prc ); PIC_DrawGeneric( x, y, width, height, prc );

2
engine/client/cl_main.c

@ -879,7 +879,7 @@ CL_SendCommand
Called every frame to builds and sends a command packet to the server. Called every frame to builds and sends a command packet to the server.
================= =================
*/ */
void CL_SendCommand( void ) static void CL_SendCommand( void )
{ {
// we create commands even if a demo is playing, // we create commands even if a demo is playing,
CL_CreateCmd(); CL_CreateCmd();

30
engine/client/cl_pmove.c

@ -54,31 +54,6 @@ void GAME_EXPORT CL_PopPMStates( void )
clgame.pushed = false; clgame.pushed = false;
} }
/*
=============
CL_PushTraceBounds
=============
*/
void GAME_EXPORT CL_PushTraceBounds( int hullnum, const float *mins, const float *maxs )
{
hullnum = bound( 0, hullnum, 3 );
VectorCopy( mins, clgame.pmove->player_mins[hullnum] );
VectorCopy( maxs, clgame.pmove->player_maxs[hullnum] );
}
/*
=============
CL_PopTraceBounds
=============
*/
void GAME_EXPORT CL_PopTraceBounds( void )
{
memcpy( clgame.pmove->player_mins, host.player_mins, sizeof( host.player_mins ));
memcpy( clgame.pmove->player_maxs, host.player_maxs, sizeof( host.player_maxs ));
}
/* /*
=============== ===============
CL_IsPredicted CL_IsPredicted
@ -687,11 +662,6 @@ cl_entity_t *CL_GetWaterEntity( const float *rgflPos )
return CL_GetEntityByIndex( entnum ); return CL_GetEntityByIndex( entnum );
} }
int GAME_EXPORT CL_TestLine( const vec3_t start, const vec3_t end, int flags )
{
return PM_TestLineExt( clgame.pmove, clgame.pmove->physents, clgame.pmove->numphysent, start, end, flags );
}
static int GAME_EXPORT pfnTestPlayerPosition( float *pos, pmtrace_t *ptrace ) static int GAME_EXPORT pfnTestPlayerPosition( float *pos, pmtrace_t *ptrace )
{ {
return PM_TestPlayerPosition( clgame.pmove, pos, ptrace, NULL ); return PM_TestPlayerPosition( clgame.pmove, pos, ptrace, NULL );

4
engine/client/cl_scrn.c

@ -415,7 +415,7 @@ void SCR_EndLoadingPlaque( void )
SCR_AddDirtyPoint SCR_AddDirtyPoint
================= =================
*/ */
void SCR_AddDirtyPoint( int x, int y ) static void SCR_AddDirtyPoint( int x, int y )
{ {
if( x < scr_dirty.x1 ) scr_dirty.x1 = x; if( x < scr_dirty.x1 ) scr_dirty.x1 = x;
if( x > scr_dirty.x2 ) scr_dirty.x2 = x; if( x > scr_dirty.x2 ) scr_dirty.x2 = x;
@ -602,7 +602,7 @@ SCR_InstallParticlePalette
INTERNAL RESOURCE INTERNAL RESOURCE
================ ================
*/ */
void SCR_InstallParticlePalette( void ) static void SCR_InstallParticlePalette( void )
{ {
rgbdata_t *pic; rgbdata_t *pic;
int i; int i;

4
engine/client/cl_tent.c

@ -87,6 +87,8 @@ const char *cl_explode_sounds[] =
"weapons/explode5.wav", "weapons/explode5.wav",
}; };
static void CL_PlayerDecal( int playerIndex, int textureIndex, int entityIndex, float *pos );
/* /*
================ ================
CL_LoadClientSprites CL_LoadClientSprites
@ -2919,7 +2921,7 @@ CL_PlayerDecal
spray custom colored decal (clan logo etc) spray custom colored decal (clan logo etc)
=============== ===============
*/ */
void CL_PlayerDecal( int playernum, int customIndex, int entityIndex, float *pos ) static void CL_PlayerDecal( int playernum, int customIndex, int entityIndex, float *pos )
{ {
int textureIndex = 0; int textureIndex = 0;
customization_t *pCust = NULL; customization_t *pCust = NULL;

41
engine/client/client.h

@ -737,8 +737,6 @@ void CL_ClearResourceLists( void );
void CL_Parse_Debug( qboolean enable ); void CL_Parse_Debug( qboolean enable );
void CL_Parse_RecordCommand( int cmd, int startoffset ); void CL_Parse_RecordCommand( int cmd, int startoffset );
void CL_ResetFrame( frame_t *frame ); void CL_ResetFrame( frame_t *frame );
void CL_WriteMessageHistory( void );
const char *CL_MsgInfo( int cmd );
// //
// cl_efx.c // cl_efx.c
@ -749,7 +747,6 @@ void CL_Particle( const vec3_t org, int color, float life, int zpos, int zvel );
// cl_main.c // cl_main.c
// //
void CL_Init( void ); void CL_Init( void );
void CL_SendCommand( void );
void CL_Disconnect_f( void ); void CL_Disconnect_f( void );
void CL_ProcessFile( qboolean successfully_received, const char *filename ); void CL_ProcessFile( qboolean successfully_received, const char *filename );
void CL_WriteUsercmd( sizebuf_t *msg, int from, int to ); void CL_WriteUsercmd( sizebuf_t *msg, int from, int to );
@ -758,7 +755,6 @@ qboolean CL_PrecacheResources( void );
void CL_SetupOverviewParams( void ); void CL_SetupOverviewParams( void );
void CL_UpdateFrameLerp( void ); void CL_UpdateFrameLerp( void );
int CL_IsDevOverviewMode( void ); int CL_IsDevOverviewMode( void );
void CL_PingServers_f( void );
void CL_SignonReply( void ); void CL_SignonReply( void );
void CL_ClearState( void ); void CL_ClearState( void );
@ -776,8 +772,6 @@ void CL_CheckStartupDemos( void );
void CL_WriteDemoJumpTime( void ); void CL_WriteDemoJumpTime( void );
void CL_CloseDemoHeader( void ); void CL_CloseDemoHeader( void );
void CL_DemoCompleted( void ); void CL_DemoCompleted( void );
void CL_StopPlayback( void );
void CL_StopRecord( void );
void CL_PlayDemo_f( void ); void CL_PlayDemo_f( void );
void CL_TimeDemo_f( void ); void CL_TimeDemo_f( void );
void CL_StartDemos_f( void ); void CL_StartDemos_f( void );
@ -793,12 +787,9 @@ int CL_GetDemoComment( const char *demoname, char *comment );
void CL_ParseEvent( sizebuf_t *msg ); void CL_ParseEvent( sizebuf_t *msg );
void CL_ParseReliableEvent( sizebuf_t *msg ); void CL_ParseReliableEvent( sizebuf_t *msg );
void CL_SetEventIndex( const char *szEvName, int ev_index ); void CL_SetEventIndex( const char *szEvName, int ev_index );
void CL_QueueEvent( int flags, int index, float delay, event_args_t *args );
void CL_PlaybackEvent( int flags, const edict_t *pInvoker, word eventindex, float delay, float *origin, void CL_PlaybackEvent( int flags, const edict_t *pInvoker, word eventindex, float delay, float *origin,
float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ); float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 );
void CL_RegisterEvent( int lastnum, const char *szEvName, pfnEventHook func ); void CL_RegisterEvent( int lastnum, const char *szEvName, pfnEventHook func );
void CL_BatchResourceRequest( qboolean initialize );
int CL_EstimateNeededResources( void );
void CL_ResetEvent( event_info_t *ei ); void CL_ResetEvent( event_info_t *ei );
word CL_EventIndex( const char *name ); word CL_EventIndex( const char *name );
void CL_FireEvents( void ); void CL_FireEvents( void );
@ -822,10 +813,7 @@ int CL_DrawStringf( cl_font_t *font, float x, float y, rgba_t color, int flags,
// //
void CL_UnloadProgs( void ); void CL_UnloadProgs( void );
qboolean CL_LoadProgs( const char *name ); qboolean CL_LoadProgs( const char *name );
void CL_ParseUserMessage( sizebuf_t *msg, int svc_num );
void CL_LinkUserMessage( char *pszName, const int svc_num, int iSize ); void CL_LinkUserMessage( char *pszName, const int svc_num, int iSize );
void CL_ParseFinaleCutscene( sizebuf_t *msg, int level );
void CL_ParseTextMessage( sizebuf_t *msg );
void CL_DrawHUD( int state ); void CL_DrawHUD( int state );
void CL_InitEdicts( int maxclients ); void CL_InitEdicts( int maxclients );
void CL_FreeEdicts( void ); void CL_FreeEdicts( void );
@ -843,12 +831,9 @@ model_t *CL_LoadModel( const char *modelname, int *index );
HSPRITE pfnSPR_LoadExt( const char *szPicName, uint texFlags ); HSPRITE pfnSPR_LoadExt( const char *szPicName, uint texFlags );
void SPR_AdjustSize( float *x, float *y, float *w, float *h ); void SPR_AdjustSize( float *x, float *y, float *w, float *h );
int CL_GetScreenInfo( SCREENINFO *pscrinfo ); int CL_GetScreenInfo( SCREENINFO *pscrinfo );
void CL_FillRGBA( int x, int y, int width, int height, int r, int g, int b, int a );
pmtrace_t *PM_CL_TraceLine( float *start, float *end, int flags, int usehull, int ignore_pe ); pmtrace_t *PM_CL_TraceLine( float *start, float *end, int flags, int usehull, int ignore_pe );
const char *PM_CL_TraceTexture( int ground, float *vstart, float *vend ); const char *PM_CL_TraceTexture( int ground, float *vstart, float *vend );
int PM_CL_PointContents( const float *p, int *truecontents ); int PM_CL_PointContents( const float *p, int *truecontents );
void CL_GetMousePosition( int *mx, int *my ); // TODO: move to input
cl_entity_t* CL_GetViewModel( void );
physent_t *pfnGetPhysent( int idx ); physent_t *pfnGetPhysent( int idx );
struct msurface_s *pfnTraceSurface( int ground, float *vstart, float *vend ); struct msurface_s *pfnTraceSurface( int ground, float *vstart, float *vend );
movevars_t *pfnGetMoveVars( void ); movevars_t *pfnGetMoveVars( void );
@ -907,6 +892,11 @@ qboolean CL_RequestMissingResources( void );
void CL_RegisterResources ( sizebuf_t *msg ); void CL_RegisterResources ( sizebuf_t *msg );
void CL_ParseViewEntity( sizebuf_t *msg ); void CL_ParseViewEntity( sizebuf_t *msg );
void CL_ParseServerTime( sizebuf_t *msg ); void CL_ParseServerTime( sizebuf_t *msg );
void CL_ParseUserMessage( sizebuf_t *msg, int svc_num );
void CL_ParseFinaleCutscene( sizebuf_t *msg, int level );
void CL_ParseTextMessage( sizebuf_t *msg );
void CL_BatchResourceRequest( qboolean initialize );
int CL_EstimateNeededResources( void );
// //
// cl_parse_48.c // cl_parse_48.c
@ -920,8 +910,6 @@ void CL_LegacyPrecache_f( void );
void SCR_VidInit( void ); void SCR_VidInit( void );
void SCR_TileClear( void ); void SCR_TileClear( void );
void SCR_DirtyScreen( void ); void SCR_DirtyScreen( void );
void SCR_AddDirtyPoint( int x, int y );
void SCR_InstallParticlePalette( void );
void SCR_EndLoadingPlaque( void ); void SCR_EndLoadingPlaque( void );
void SCR_RegisterTextures( void ); void SCR_RegisterTextures( void );
void SCR_LoadCreditsFont( void ); void SCR_LoadCreditsFont( void );
@ -957,20 +945,17 @@ void CL_InitClientMove( void );
void CL_PredictMovement( qboolean repredicting ); void CL_PredictMovement( qboolean repredicting );
void CL_CheckPredictionError( void ); void CL_CheckPredictionError( void );
qboolean CL_IsPredicted( void ); qboolean CL_IsPredicted( void );
int CL_TruePointContents( const vec3_t p );
int CL_WaterEntity( const float *rgflPos ); int CL_WaterEntity( const float *rgflPos );
cl_entity_t *CL_GetWaterEntity( const float *rgflPos ); cl_entity_t *CL_GetWaterEntity( const float *rgflPos );
int CL_TestLine( const vec3_t start, const vec3_t end, int flags );
pmtrace_t *CL_VisTraceLine( vec3_t start, vec3_t end, int flags ); pmtrace_t *CL_VisTraceLine( vec3_t start, vec3_t end, int flags );
pmtrace_t CL_TraceLine( vec3_t start, vec3_t end, int flags ); pmtrace_t CL_TraceLine( vec3_t start, vec3_t end, int flags );
void CL_PushTraceBounds( int hullnum, const float *mins, const float *maxs );
void CL_PopTraceBounds( void );
void CL_MoveSpectatorCamera( void ); void CL_MoveSpectatorCamera( void );
void CL_SetLastUpdate( void ); void CL_SetLastUpdate( void );
void CL_RedoPrediction( void ); void CL_RedoPrediction( void );
void CL_PushPMStates( void ); void CL_PushPMStates( void );
void CL_PopPMStates( void ); void CL_PopPMStates( void );
void CL_SetUpPlayerPrediction( int dopred, int bIncludeLocalClient ); void CL_SetUpPlayerPrediction( int dopred, int bIncludeLocalClient );
void CL_SetIdealPitch( void );
// //
// cl_qparse.c // cl_qparse.c
@ -987,12 +972,10 @@ qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType );
void CL_ResetLatchedVars( cl_entity_t *ent, qboolean full_reset ); void CL_ResetLatchedVars( cl_entity_t *ent, qboolean full_reset );
qboolean CL_GetEntitySpatialization( struct channel_s *ch ); qboolean CL_GetEntitySpatialization( struct channel_s *ch );
qboolean CL_GetMovieSpatialization( struct rawchan_s *ch ); qboolean CL_GetMovieSpatialization( struct rawchan_s *ch );
void CL_ProcessPlayerState( int playerindex, entity_state_t *state );
void CL_ComputePlayerOrigin( cl_entity_t *clent ); void CL_ComputePlayerOrigin( cl_entity_t *clent );
void CL_ProcessPacket( frame_t *frame ); void CL_ProcessPacket( frame_t *frame );
void CL_MoveThirdpersonCamera( void ); void CL_MoveThirdpersonCamera( void );
qboolean CL_IsPlayerIndex( int idx ); qboolean CL_IsPlayerIndex( int idx );
void CL_SetIdealPitch( void );
void CL_EmitEntities( void ); void CL_EmitEntities( void );
// //
@ -1016,6 +999,7 @@ const ref_overview_t *GL_GetOverviewParms( void );
// //
void R_StoreEfrags( efrag_t **ppefrag, int framecount ); void R_StoreEfrags( efrag_t **ppefrag, int framecount );
void R_AddEfrags( cl_entity_t *ent ); void R_AddEfrags( cl_entity_t *ent );
// //
// cl_tent.c // cl_tent.c
// //
@ -1026,7 +1010,6 @@ void CL_ClearEfrags( void );
void CL_TestLights( void ); void CL_TestLights( void );
void CL_FireCustomDecal( int textureIndex, int entityIndex, int modelIndex, float *pos, int flags, float scale ); void CL_FireCustomDecal( int textureIndex, int entityIndex, int modelIndex, float *pos, int flags, float scale );
void CL_DecalShoot( int textureIndex, int entityIndex, int modelIndex, float *pos, int flags ); void CL_DecalShoot( int textureIndex, int entityIndex, int modelIndex, float *pos, int flags );
void CL_PlayerDecal( int playerIndex, int textureIndex, int entityIndex, float *pos );
void R_FreeDeadParticles( struct particle_s **ppparticles ); void R_FreeDeadParticles( struct particle_s **ppparticles );
void CL_AddClientResource( const char *filename, int type ); void CL_AddClientResource( const char *filename, int type );
void CL_AddClientResources( void ); void CL_AddClientResources( void );
@ -1048,7 +1031,6 @@ void CL_ReadPointFile_f( void );
void CL_DrawEFX( float time, qboolean fTrans ); void CL_DrawEFX( float time, qboolean fTrans );
void CL_ThinkParticle( double frametime, particle_t *p ); void CL_ThinkParticle( double frametime, particle_t *p );
void CL_ReadLineFile_f( void ); void CL_ReadLineFile_f( void );
void CL_RunLightStyles( void );
// //
// console.c // console.c
@ -1069,26 +1051,22 @@ int Con_UtfProcessCharForce( int in );
int Con_UtfMoveLeft( char *str, int pos ); int Con_UtfMoveLeft( char *str, int pos );
int Con_UtfMoveRight( char *str, int pos, int length ); int Con_UtfMoveRight( char *str, int pos, int length );
void Con_DefaultColor( int r, int g, int b, qboolean gameui ); void Con_DefaultColor( int r, int g, int b, qboolean gameui );
void Con_InvalidateFonts( void );
cl_font_t *Con_GetCurFont( void ); cl_font_t *Con_GetCurFont( void );
cl_font_t *Con_GetFont( int num ); cl_font_t *Con_GetFont( int num );
void Con_DrawCharacterLen( int number, int *width, int *height ); void Con_DrawCharacterLen( int number, int *width, int *height );
int Con_DrawString( int x, int y, const char *string, rgba_t setColor ); // legacy, use cl_font.c int Con_DrawString( int x, int y, const char *string, rgba_t setColor ); // legacy, use cl_font.c
void GAME_EXPORT Con_DrawStringLen( const char *pText, int *length, int *height ); // legacy, use cl_font.c void GAME_EXPORT Con_DrawStringLen( const char *pText, int *length, int *height ); // legacy, use cl_font.c
void Con_CharEvent( int key ); void Con_CharEvent( int key );
void Con_RestoreFont( void );
void Key_Console( int key ); void Key_Console( int key );
void Key_Message( int key ); void Key_Message( int key );
void Con_FastClose( void ); void Con_FastClose( void );
void Con_Bottom( void ); void Con_Bottom( void );
void Con_Top( void );
void Con_PageDown( int lines ); void Con_PageDown( int lines );
void Con_PageUp( int lines ); void Con_PageUp( int lines );
// //
// s_main.c // s_main.c
// //
void S_StreamRawSamples( int samples, int rate, int width, int channels, const byte *data );
void S_StreamAviSamples( void *Avi, int entnum, float fvol, float attn, float synctime ); void S_StreamAviSamples( void *Avi, int entnum, float fvol, float attn, float synctime );
void S_StartBackgroundTrack( const char *intro, const char *loop, int position, qboolean fullpath ); void S_StartBackgroundTrack( const char *intro, const char *loop, int position, qboolean fullpath );
void S_StopBackgroundTrack( void ); void S_StopBackgroundTrack( void );
@ -1135,11 +1113,6 @@ void UI_ConnectionProgress_Precache( void );
void UI_ConnectionProgress_Connect( const char *server ); void UI_ConnectionProgress_Connect( const char *server );
void UI_ConnectionProgress_ChangeLevel( void ); void UI_ConnectionProgress_ChangeLevel( void );
void UI_ConnectionProgress_ParseServerInfo( const char *server ); void UI_ConnectionProgress_ParseServerInfo( const char *server );
void pfnPIC_Set( HIMAGE hPic, int r, int g, int b, int a );
void pfnPIC_Draw( int x, int y, int width, int height, const wrect_t *prc );
void pfnPIC_DrawTrans( int x, int y, int width, int height, const wrect_t *prc );
void pfnPIC_DrawHoles( int x, int y, int width, int height, const wrect_t *prc );
void pfnPIC_DrawAdditive( int x, int y, int width, int height, const wrect_t *prc );
// //
// cl_mobile.c // cl_mobile.c

11
engine/client/console.c

@ -140,8 +140,9 @@ typedef struct
static console_t con; static console_t con;
void Con_ClearField( field_t *edit ); static void Con_ClearField( field_t *edit );
void Field_CharEvent( field_t *edit, int ch ); static void Field_CharEvent( field_t *edit, int ch );
static void Con_InvalidateFonts( void );
static void Con_LoadHistory( con_history_t *self ); static void Con_LoadHistory( con_history_t *self );
static void Con_SaveHistory( con_history_t *self ); static void Con_SaveHistory( con_history_t *self );
@ -493,7 +494,7 @@ void Con_PageDown( int lines )
Con_Top Con_Top
================ ================
*/ */
void Con_Top( void ) static void Con_Top( void )
{ {
con.backscroll = CON_MAXLINES; con.backscroll = CON_MAXLINES;
} }
@ -1120,7 +1121,7 @@ EDIT FIELDS
Con_ClearField Con_ClearField
================ ================
*/ */
void Con_ClearField( field_t *edit ) static void Con_ClearField( field_t *edit )
{ {
memset( edit->buffer, 0, MAX_STRING ); memset( edit->buffer, 0, MAX_STRING );
edit->cursor = 0; edit->cursor = 0;
@ -1250,7 +1251,7 @@ static void Field_KeyDownEvent( field_t *edit, int key )
Field_CharEvent Field_CharEvent
================== ==================
*/ */
void Field_CharEvent( field_t *edit, int ch ) static void Field_CharEvent( field_t *edit, int ch )
{ {
int len; int len;

Loading…
Cancel
Save