mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 14:42:05 +08:00
engine: fix -Wmissing-prototypes
This commit is contained in:
+20
-20
@@ -118,7 +118,7 @@ void SV_GetChallenge( netadr_t from )
|
||||
Netchan_OutOfBandPrint( NS_SERVER, svs.challenges[i].adr, "challenge %i", svs.challenges[i].challenge );
|
||||
}
|
||||
|
||||
int SV_GetFragmentSize( void *pcl, fragsize_t mode )
|
||||
static int SV_GetFragmentSize( void *pcl, fragsize_t mode )
|
||||
{
|
||||
sv_client_t *cl = (sv_client_t*)pcl;
|
||||
int cl_frag_size;
|
||||
@@ -191,7 +191,7 @@ for some reasons file can't be downloaded
|
||||
tell the client about this problem
|
||||
================
|
||||
*/
|
||||
void SV_FailDownload( sv_client_t *cl, const char *filename )
|
||||
static void SV_FailDownload( sv_client_t *cl, const char *filename )
|
||||
{
|
||||
if( !COM_CheckString( filename ))
|
||||
return;
|
||||
@@ -207,7 +207,7 @@ SV_CheckChallenge
|
||||
Make sure connecting client is not spoofing
|
||||
================
|
||||
*/
|
||||
int SV_CheckChallenge( netadr_t from, int challenge )
|
||||
static int SV_CheckChallenge( netadr_t from, int challenge )
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -247,7 +247,7 @@ SV_CheckIPRestrictions
|
||||
Determine if client is outside appropriate address range
|
||||
================
|
||||
*/
|
||||
int SV_CheckIPRestrictions( netadr_t from )
|
||||
static int SV_CheckIPRestrictions( netadr_t from )
|
||||
{
|
||||
if( sv_lan.value )
|
||||
{
|
||||
@@ -265,7 +265,7 @@ Get slot # and set client_t pointer for player, if possible
|
||||
We don't do this search on a "reconnect, we just reuse the slot
|
||||
================
|
||||
*/
|
||||
int SV_FindEmptySlot( netadr_t from, int *pslot, sv_client_t **ppClient )
|
||||
static int SV_FindEmptySlot( netadr_t from, int *pslot, sv_client_t **ppClient )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
int i;
|
||||
@@ -291,7 +291,7 @@ SV_ConnectClient
|
||||
A connection request that did not come from the master
|
||||
==================
|
||||
*/
|
||||
void SV_ConnectClient( netadr_t from )
|
||||
static void SV_ConnectClient( netadr_t from )
|
||||
{
|
||||
char userinfo[MAX_INFO_STRING];
|
||||
char protinfo[MAX_INFO_STRING];
|
||||
@@ -831,7 +831,7 @@ SV_TestBandWidth
|
||||
|
||||
================
|
||||
*/
|
||||
void SV_TestBandWidth( netadr_t from )
|
||||
static void SV_TestBandWidth( netadr_t from )
|
||||
{
|
||||
const int version = Q_atoi( Cmd_Argv( 1 ));
|
||||
const int packetsize = Q_atoi( Cmd_Argv( 2 ));
|
||||
@@ -876,7 +876,7 @@ SV_Ack
|
||||
|
||||
================
|
||||
*/
|
||||
void SV_Ack( netadr_t from )
|
||||
static void SV_Ack( netadr_t from )
|
||||
{
|
||||
Con_Printf( "ping %s\n", NET_AdrToString( from ));
|
||||
}
|
||||
@@ -889,7 +889,7 @@ Responds with short info for broadcast scans
|
||||
The second parameter should be the current protocol version number.
|
||||
================
|
||||
*/
|
||||
void SV_Info( netadr_t from, int protocolVersion )
|
||||
static void SV_Info( netadr_t from, int protocolVersion )
|
||||
{
|
||||
char s[512];
|
||||
|
||||
@@ -947,7 +947,7 @@ SV_BuildNetAnswer
|
||||
Responds with long info for local and broadcast requests
|
||||
================
|
||||
*/
|
||||
void SV_BuildNetAnswer( netadr_t from )
|
||||
static void SV_BuildNetAnswer( netadr_t from )
|
||||
{
|
||||
char string[MAX_INFO_STRING];
|
||||
int version, context, type;
|
||||
@@ -1043,7 +1043,7 @@ SV_Ping
|
||||
Just responds with an acknowledgement
|
||||
================
|
||||
*/
|
||||
void SV_Ping( netadr_t from )
|
||||
static void SV_Ping( netadr_t from )
|
||||
{
|
||||
Netchan_OutOfBandPrint( NS_SERVER, from, "ack" );
|
||||
}
|
||||
@@ -1053,7 +1053,7 @@ void SV_Ping( netadr_t from )
|
||||
Rcon_Validate
|
||||
================
|
||||
*/
|
||||
qboolean Rcon_Validate( void )
|
||||
static qboolean Rcon_Validate( void )
|
||||
{
|
||||
if( !COM_CheckString( rcon_password.string ))
|
||||
return false;
|
||||
@@ -1156,7 +1156,7 @@ SV_EstablishTimeBase
|
||||
Finangles latency and the like.
|
||||
===================
|
||||
*/
|
||||
void SV_EstablishTimeBase( sv_client_t *cl, usercmd_t *cmds, int dropped, int numbackup, int numcmds )
|
||||
static void SV_EstablishTimeBase( sv_client_t *cl, usercmd_t *cmds, int dropped, int numbackup, int numcmds )
|
||||
{
|
||||
double runcmd_time = 0.0;
|
||||
int i, cmdnum = dropped;
|
||||
@@ -1190,7 +1190,7 @@ SV_CalcClientTime
|
||||
compute latency for client
|
||||
===================
|
||||
*/
|
||||
float SV_CalcClientTime( sv_client_t *cl )
|
||||
static float SV_CalcClientTime( sv_client_t *cl )
|
||||
{
|
||||
float minping, maxping;
|
||||
float ping = 0.0f;
|
||||
@@ -1389,7 +1389,7 @@ Called when a player connects to a server or respawns in
|
||||
a deathmatch.
|
||||
============
|
||||
*/
|
||||
void SV_PutClientInServer( sv_client_t *cl )
|
||||
static void SV_PutClientInServer( sv_client_t *cl )
|
||||
{
|
||||
static byte msg_buf[MAX_INIT_MSG + 0x200]; // MAX_INIT_MSG + some space
|
||||
edict_t *ent = cl->edict;
|
||||
@@ -1522,7 +1522,7 @@ SV_UpdateClientView
|
||||
Resend the client viewentity (used for demos)
|
||||
============
|
||||
*/
|
||||
void SV_UpdateClientView( sv_client_t *cl )
|
||||
static void SV_UpdateClientView( sv_client_t *cl )
|
||||
{
|
||||
int viewEnt;
|
||||
|
||||
@@ -3306,7 +3306,7 @@ SV_ParseResourceList
|
||||
Parse resource list
|
||||
===================
|
||||
*/
|
||||
void SV_ParseResourceList( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_ParseResourceList( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
int totalsize;
|
||||
resource_t *resource;
|
||||
@@ -3395,7 +3395,7 @@ SV_ParseCvarValue
|
||||
Parse a requested value from client cvar
|
||||
===================
|
||||
*/
|
||||
void SV_ParseCvarValue( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_ParseCvarValue( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
const char *value = MSG_ReadString( msg );
|
||||
|
||||
@@ -3411,7 +3411,7 @@ SV_ParseCvarValue2
|
||||
Parse a requested value from client cvar
|
||||
===================
|
||||
*/
|
||||
void SV_ParseCvarValue2( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_ParseCvarValue2( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
string name, value;
|
||||
int requestID = MSG_ReadLong( msg );
|
||||
@@ -3429,7 +3429,7 @@ void SV_ParseCvarValue2( sv_client_t *cl, sizebuf_t *msg )
|
||||
SV_ParseVoiceData
|
||||
===================
|
||||
*/
|
||||
void SV_ParseVoiceData( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_ParseVoiceData( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
char received[4096];
|
||||
sv_client_t *cur;
|
||||
|
||||
+29
-29
@@ -169,7 +169,7 @@ SV_ValidateMap
|
||||
check map for typically errors
|
||||
==================
|
||||
*/
|
||||
qboolean SV_ValidateMap( const char *pMapName, qboolean check_spawn )
|
||||
static qboolean SV_ValidateMap( const char *pMapName, qboolean check_spawn )
|
||||
{
|
||||
char *spawn_entity;
|
||||
int flags;
|
||||
@@ -210,7 +210,7 @@ Goes directly to a given map without any savegame archiving.
|
||||
For development work
|
||||
==================
|
||||
*/
|
||||
void SV_Map_f( void )
|
||||
static void SV_Map_f( void )
|
||||
{
|
||||
char mapname[MAX_QPATH];
|
||||
|
||||
@@ -240,7 +240,7 @@ Lists maps according to given substring.
|
||||
TODO: Make it more convenient. (Timestamp check, temporary file, ...)
|
||||
==================
|
||||
*/
|
||||
void SV_Maps_f( void )
|
||||
static void SV_Maps_f( void )
|
||||
{
|
||||
const char *separator = "-------------------";
|
||||
const char *argStr = Cmd_Argv( 1 ); // Substr
|
||||
@@ -275,7 +275,7 @@ SV_MapBackground_f
|
||||
Set background map (enable physics in menu)
|
||||
==================
|
||||
*/
|
||||
void SV_MapBackground_f( void )
|
||||
static void SV_MapBackground_f( void )
|
||||
{
|
||||
char mapname[MAX_QPATH];
|
||||
|
||||
@@ -315,7 +315,7 @@ Change map for next in alpha-bethical ordering
|
||||
For development work
|
||||
==================
|
||||
*/
|
||||
void SV_NextMap_f( void )
|
||||
static void SV_NextMap_f( void )
|
||||
{
|
||||
char nextmap[MAX_QPATH];
|
||||
int i, next;
|
||||
@@ -366,7 +366,7 @@ SV_NewGame_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_NewGame_f( void )
|
||||
static void SV_NewGame_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 1 )
|
||||
{
|
||||
@@ -383,7 +383,7 @@ SV_HazardCourse_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_HazardCourse_f( void )
|
||||
static void SV_HazardCourse_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 1 )
|
||||
{
|
||||
@@ -406,7 +406,7 @@ SV_Load_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_Load_f( void )
|
||||
static void SV_Load_f( void )
|
||||
{
|
||||
char path[MAX_QPATH];
|
||||
|
||||
@@ -426,7 +426,7 @@ SV_QuickLoad_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_QuickLoad_f( void )
|
||||
static void SV_QuickLoad_f( void )
|
||||
{
|
||||
Cbuf_AddText( "echo Quick Loading...; wait; load quick" );
|
||||
}
|
||||
@@ -437,7 +437,7 @@ SV_Save_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_Save_f( void )
|
||||
static void SV_Save_f( void )
|
||||
{
|
||||
qboolean ret = false;
|
||||
|
||||
@@ -464,7 +464,7 @@ SV_QuickSave_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_QuickSave_f( void )
|
||||
static void SV_QuickSave_f( void )
|
||||
{
|
||||
Cbuf_AddText( "echo Quick Saving...; wait; save quick" );
|
||||
}
|
||||
@@ -475,7 +475,7 @@ SV_DeleteSave_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_DeleteSave_f( void )
|
||||
static void SV_DeleteSave_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 2 )
|
||||
{
|
||||
@@ -494,7 +494,7 @@ SV_AutoSave_f
|
||||
|
||||
==============
|
||||
*/
|
||||
void SV_AutoSave_f( void )
|
||||
static void SV_AutoSave_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 1 )
|
||||
{
|
||||
@@ -513,7 +513,7 @@ SV_Restart_f
|
||||
restarts current level
|
||||
==================
|
||||
*/
|
||||
void SV_Restart_f( void )
|
||||
static void SV_Restart_f( void )
|
||||
{
|
||||
// because restart can be multiple issued
|
||||
if( sv.state != ss_active )
|
||||
@@ -528,7 +528,7 @@ SV_Reload_f
|
||||
continue from latest savedgame
|
||||
==================
|
||||
*/
|
||||
void SV_Reload_f( void )
|
||||
static void SV_Reload_f( void )
|
||||
{
|
||||
// because reload can be multiple issued
|
||||
if( GameState->nextstate != STATE_RUNFRAME )
|
||||
@@ -545,7 +545,7 @@ SV_ChangeLevel_f
|
||||
classic change level
|
||||
==================
|
||||
*/
|
||||
void SV_ChangeLevel_f( void )
|
||||
static void SV_ChangeLevel_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 2 )
|
||||
{
|
||||
@@ -563,7 +563,7 @@ SV_ChangeLevel2_f
|
||||
smooth change level
|
||||
==================
|
||||
*/
|
||||
void SV_ChangeLevel2_f( void )
|
||||
static void SV_ChangeLevel2_f( void )
|
||||
{
|
||||
if( Cmd_Argc() != 3 )
|
||||
{
|
||||
@@ -581,7 +581,7 @@ SV_Kick_f
|
||||
Kick a user off of the server
|
||||
==================
|
||||
*/
|
||||
void SV_Kick_f( void )
|
||||
static void SV_Kick_f( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
const char *param;
|
||||
@@ -612,7 +612,7 @@ void SV_Kick_f( void )
|
||||
SV_EntPatch_f
|
||||
==================
|
||||
*/
|
||||
void SV_EntPatch_f( void )
|
||||
static void SV_EntPatch_f( void )
|
||||
{
|
||||
const char *mapname;
|
||||
|
||||
@@ -687,7 +687,7 @@ void SV_Status_f( void )
|
||||
SV_ConSay_f
|
||||
==================
|
||||
*/
|
||||
void SV_ConSay_f( void )
|
||||
static void SV_ConSay_f( void )
|
||||
{
|
||||
const char *p;
|
||||
char text[MAX_SYSPATH];
|
||||
@@ -730,7 +730,7 @@ SV_ServerInfo_f
|
||||
Examine or change the serverinfo string
|
||||
===========
|
||||
*/
|
||||
void SV_ServerInfo_f( void )
|
||||
static void SV_ServerInfo_f( void )
|
||||
{
|
||||
convar_t *var;
|
||||
|
||||
@@ -774,7 +774,7 @@ SV_LocalInfo_f
|
||||
Examine or change the localinfo string
|
||||
===========
|
||||
*/
|
||||
void SV_LocalInfo_f( void )
|
||||
static void SV_LocalInfo_f( void )
|
||||
{
|
||||
if( Cmd_Argc() == 1 )
|
||||
{
|
||||
@@ -806,7 +806,7 @@ SV_ClientInfo_f
|
||||
Examine all a users info strings
|
||||
===========
|
||||
*/
|
||||
void SV_ClientInfo_f( void )
|
||||
static void SV_ClientInfo_f( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
|
||||
@@ -832,7 +832,7 @@ SV_ClientUserAgent_f
|
||||
Examine useragent strings
|
||||
===========
|
||||
*/
|
||||
void SV_ClientUserAgent_f( void )
|
||||
static void SV_ClientUserAgent_f( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
|
||||
@@ -857,7 +857,7 @@ SV_KillServer_f
|
||||
Kick everyone off, possibly in preparation for a new game
|
||||
===============
|
||||
*/
|
||||
void SV_KillServer_f( void )
|
||||
static void SV_KillServer_f( void )
|
||||
{
|
||||
Host_ShutdownServer();
|
||||
}
|
||||
@@ -869,7 +869,7 @@ SV_PlayersOnly_f
|
||||
disable plhysics but players
|
||||
===============
|
||||
*/
|
||||
void SV_PlayersOnly_f( void )
|
||||
static void SV_PlayersOnly_f( void )
|
||||
{
|
||||
if( !Cvar_VariableInteger( "sv_cheats" )) return;
|
||||
|
||||
@@ -884,7 +884,7 @@ SV_EdictUsage_f
|
||||
|
||||
===============
|
||||
*/
|
||||
void SV_EdictUsage_f( void )
|
||||
static void SV_EdictUsage_f( void )
|
||||
{
|
||||
int active;
|
||||
|
||||
@@ -906,7 +906,7 @@ SV_EntityInfo_f
|
||||
|
||||
===============
|
||||
*/
|
||||
void SV_EntityInfo_f( void )
|
||||
static void SV_EntityInfo_f( void )
|
||||
{
|
||||
edict_t *ent;
|
||||
int i;
|
||||
@@ -950,7 +950,7 @@ Rcon_Redirect_f
|
||||
Force redirect N lines of console output to client
|
||||
================
|
||||
*/
|
||||
void Rcon_Redirect_f( void )
|
||||
static void Rcon_Redirect_f( void )
|
||||
{
|
||||
int lines = 2000;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ GNU General Public License for more details.
|
||||
#include "common.h"
|
||||
#include "server.h"
|
||||
|
||||
void SV_CreateCustomizationList( sv_client_t *cl )
|
||||
static void SV_CreateCustomizationList( sv_client_t *cl )
|
||||
{
|
||||
resource_t *pResource;
|
||||
customization_t *pList, *pCust;
|
||||
@@ -61,7 +61,7 @@ void SV_CreateCustomizationList( sv_client_t *cl )
|
||||
}
|
||||
}
|
||||
|
||||
qboolean SV_FileInConsistencyList( const char *filename, consistency_t **ppout )
|
||||
static qboolean SV_FileInConsistencyList( const char *filename, consistency_t **ppout )
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -246,7 +246,7 @@ void SV_TransferConsistencyInfo( void )
|
||||
sv.num_consistency = total;
|
||||
}
|
||||
|
||||
void SV_SendConsistencyList( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_SendConsistencyList( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
int i, lastcheck;
|
||||
int delta;
|
||||
@@ -288,7 +288,7 @@ void SV_SendConsistencyList( sv_client_t *cl, sizebuf_t *msg )
|
||||
MSG_WriteOneBit( msg, 0 );
|
||||
}
|
||||
|
||||
qboolean SV_CheckFile( sizebuf_t *msg, const char *filename )
|
||||
static qboolean SV_CheckFile( sizebuf_t *msg, const char *filename )
|
||||
{
|
||||
resource_t p;
|
||||
|
||||
@@ -337,7 +337,7 @@ void SV_AddToResourceList( resource_t *pResource, resource_t *pList )
|
||||
pList->pPrev = pResource;
|
||||
}
|
||||
|
||||
void SV_SendCustomization( sv_client_t *cl, int playernum, resource_t *pResource )
|
||||
static void SV_SendCustomization( sv_client_t *cl, int playernum, resource_t *pResource )
|
||||
{
|
||||
MSG_BeginServerCmd( &cl->netchan.message, svc_customization );
|
||||
MSG_WriteByte( &cl->netchan.message, playernum ); // playernum
|
||||
@@ -410,7 +410,7 @@ int SV_EstimateNeededResources( sv_client_t *cl )
|
||||
return size;
|
||||
}
|
||||
|
||||
void SV_Customization( sv_client_t *pClient, resource_t *pResource, qboolean bSkipPlayer )
|
||||
static void SV_Customization( sv_client_t *pClient, resource_t *pResource, qboolean bSkipPlayer )
|
||||
{
|
||||
int i, nPlayerNumber = -1;
|
||||
sv_client_t *cl;
|
||||
@@ -435,7 +435,7 @@ void SV_Customization( sv_client_t *pClient, resource_t *pResource, qboolean bSk
|
||||
}
|
||||
}
|
||||
|
||||
void SV_PropagateCustomizations( sv_client_t *pHost )
|
||||
static void SV_PropagateCustomizations( sv_client_t *pHost )
|
||||
{
|
||||
customization_t *pCust;
|
||||
resource_t *pResource;
|
||||
@@ -459,7 +459,7 @@ void SV_PropagateCustomizations( sv_client_t *pHost )
|
||||
}
|
||||
}
|
||||
|
||||
void SV_RegisterResources( sv_client_t *pHost )
|
||||
static void SV_RegisterResources( sv_client_t *pHost )
|
||||
{
|
||||
resource_t *pResource;
|
||||
|
||||
@@ -470,7 +470,7 @@ void SV_RegisterResources( sv_client_t *pHost )
|
||||
}
|
||||
}
|
||||
|
||||
qboolean SV_UploadComplete( sv_client_t *cl )
|
||||
static qboolean SV_UploadComplete( sv_client_t *cl )
|
||||
{
|
||||
if( &cl->resourcesneeded != cl->resourcesneeded.pNext )
|
||||
return false;
|
||||
|
||||
@@ -600,7 +600,7 @@ void SV_ShutdownFilter( void )
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
void Test_StringToFilterAdr( void )
|
||||
static void Test_StringToFilterAdr( void )
|
||||
{
|
||||
ipfilter_t f1;
|
||||
int i;
|
||||
@@ -669,7 +669,7 @@ void Test_StringToFilterAdr( void )
|
||||
}
|
||||
}
|
||||
|
||||
void Test_IPFilterIncludesIPFilter( void )
|
||||
static void Test_IPFilterIncludesIPFilter( void )
|
||||
{
|
||||
qboolean ret;
|
||||
const char *adrs[] =
|
||||
|
||||
@@ -180,7 +180,7 @@ SV_FindBestBaseline
|
||||
trying to deltas with previous entities
|
||||
=============
|
||||
*/
|
||||
int SV_FindBestBaseline( sv_client_t *cl, int index, entity_state_t **baseline, entity_state_t *to, client_frame_t *frame, qboolean player )
|
||||
static int SV_FindBestBaseline( sv_client_t *cl, int index, entity_state_t **baseline, entity_state_t *to, client_frame_t *frame, qboolean player )
|
||||
{
|
||||
int bestBitCount;
|
||||
int i, bitCount;
|
||||
@@ -515,7 +515,7 @@ SV_EmitPings
|
||||
|
||||
=============
|
||||
*/
|
||||
void SV_EmitPings( sizebuf_t *msg )
|
||||
static void SV_EmitPings( sizebuf_t *msg )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
int packet_loss;
|
||||
@@ -547,7 +547,7 @@ SV_WriteClientdataToMessage
|
||||
|
||||
==================
|
||||
*/
|
||||
void SV_WriteClientdataToMessage( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_WriteClientdataToMessage( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
clientdata_t nullcd;
|
||||
clientdata_t *from_cd, *to_cd;
|
||||
@@ -634,7 +634,7 @@ SV_WriteEntitiesToClient
|
||||
|
||||
==================
|
||||
*/
|
||||
void SV_WriteEntitiesToClient( sv_client_t *cl, sizebuf_t *msg )
|
||||
static void SV_WriteEntitiesToClient( sv_client_t *cl, sizebuf_t *msg )
|
||||
{
|
||||
client_frame_t *frame;
|
||||
entity_state_t *state;
|
||||
@@ -706,7 +706,7 @@ FRAME UPDATES
|
||||
SV_SendClientDatagram
|
||||
=======================
|
||||
*/
|
||||
void SV_SendClientDatagram( sv_client_t *cl )
|
||||
static void SV_SendClientDatagram( sv_client_t *cl )
|
||||
{
|
||||
byte msg_buf[MAX_DATAGRAM];
|
||||
sizebuf_t msg;
|
||||
@@ -752,7 +752,7 @@ void SV_SendClientDatagram( sv_client_t *cl )
|
||||
SV_UpdateUserInfo
|
||||
=======================
|
||||
*/
|
||||
void SV_UpdateUserInfo( sv_client_t *cl )
|
||||
static void SV_UpdateUserInfo( sv_client_t *cl )
|
||||
{
|
||||
SV_FullClientUpdate( cl, &sv.reliable_datagram );
|
||||
ClearBits( cl->flags, FCL_RESEND_USERINFO );
|
||||
@@ -764,7 +764,7 @@ void SV_UpdateUserInfo( sv_client_t *cl )
|
||||
SV_UpdateToReliableMessages
|
||||
=======================
|
||||
*/
|
||||
void SV_UpdateToReliableMessages( void )
|
||||
static void SV_UpdateToReliableMessages( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
int i;
|
||||
|
||||
@@ -56,7 +56,7 @@ SV_SendSingleResource
|
||||
hot precache on a flying
|
||||
================
|
||||
*/
|
||||
void SV_SendSingleResource( const char *name, resourcetype_t type, int index, byte flags )
|
||||
static void SV_SendSingleResource( const char *name, resourcetype_t type, int index, byte flags )
|
||||
{
|
||||
resource_t *pResource = &sv.resources[sv.num_resources];
|
||||
int nSize = 0;
|
||||
@@ -284,7 +284,7 @@ static resourcetype_t SV_DetermineResourceType( const char *filename )
|
||||
return t_generic;
|
||||
}
|
||||
|
||||
void SV_ReadResourceList( const char *filename )
|
||||
static void SV_ReadResourceList( const char *filename )
|
||||
{
|
||||
string token;
|
||||
byte *afile;
|
||||
@@ -334,7 +334,7 @@ SV_CreateGenericResources
|
||||
loads external resource list
|
||||
================
|
||||
*/
|
||||
void SV_CreateGenericResources( void )
|
||||
static void SV_CreateGenericResources( void )
|
||||
{
|
||||
string filename;
|
||||
|
||||
@@ -353,7 +353,7 @@ SV_CreateResourceList
|
||||
add resources to common list
|
||||
================
|
||||
*/
|
||||
void SV_CreateResourceList( void )
|
||||
static void SV_CreateResourceList( void )
|
||||
{
|
||||
qboolean ffirstsent = false;
|
||||
int i, nSize;
|
||||
@@ -418,7 +418,7 @@ void SV_CreateResourceList( void )
|
||||
SV_WriteVoiceCodec
|
||||
================
|
||||
*/
|
||||
void SV_WriteVoiceCodec( sizebuf_t *msg )
|
||||
static void SV_WriteVoiceCodec( sizebuf_t *msg )
|
||||
{
|
||||
MSG_BeginServerCmd( msg, svc_voiceinit );
|
||||
MSG_WriteString( msg, VOICE_DEFAULT_CODEC );
|
||||
@@ -436,7 +436,7 @@ baseline will be transmitted
|
||||
INTERNAL RESOURCE
|
||||
================
|
||||
*/
|
||||
void SV_CreateBaseline( void )
|
||||
static void SV_CreateBaseline( void )
|
||||
{
|
||||
entity_state_t nullstate, *base;
|
||||
int playermodel;
|
||||
@@ -758,7 +758,7 @@ SV_SetupClients
|
||||
determine the game type and prepare clients
|
||||
================
|
||||
*/
|
||||
void SV_SetupClients( void )
|
||||
static void SV_SetupClients( void )
|
||||
{
|
||||
qboolean changed_maxclients = false;
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ SV_HasActivePlayers
|
||||
returns true if server have spawned players
|
||||
================
|
||||
*/
|
||||
qboolean SV_HasActivePlayers( void )
|
||||
static qboolean SV_HasActivePlayers( void )
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -244,7 +244,7 @@ void SV_UpdateMovevars( qboolean initialize )
|
||||
SV_CheckCmdTimes
|
||||
=================
|
||||
*/
|
||||
void SV_CheckCmdTimes( void )
|
||||
static void SV_CheckCmdTimes( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
static double lastreset = 0;
|
||||
@@ -370,7 +370,7 @@ void SV_ProcessFile( sv_client_t *cl, const char *filename )
|
||||
SV_ReadPackets
|
||||
=================
|
||||
*/
|
||||
void SV_ReadPackets( void )
|
||||
static void SV_ReadPackets( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
int i, qport;
|
||||
@@ -488,7 +488,7 @@ for a few seconds to make sure any final reliable message gets resent
|
||||
if necessary
|
||||
==================
|
||||
*/
|
||||
void SV_CheckTimeouts( void )
|
||||
static void SV_CheckTimeouts( void )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
double droppoint;
|
||||
@@ -593,7 +593,7 @@ qboolean SV_IsSimulating( void )
|
||||
SV_RunGameFrame
|
||||
=================
|
||||
*/
|
||||
qboolean SV_RunGameFrame( void )
|
||||
static qboolean SV_RunGameFrame( void )
|
||||
{
|
||||
sv.simulating = SV_IsSimulating();
|
||||
|
||||
|
||||
@@ -429,7 +429,7 @@ qboolean SV_MoveTest( edict_t *ent, vec3_t move, qboolean relink )
|
||||
}
|
||||
}
|
||||
|
||||
qboolean SV_StepDirection( edict_t *ent, float yaw, float dist )
|
||||
static qboolean SV_StepDirection( edict_t *ent, float yaw, float dist )
|
||||
{
|
||||
int ret;
|
||||
float cSin, cCos;
|
||||
@@ -445,7 +445,7 @@ qboolean SV_StepDirection( edict_t *ent, float yaw, float dist )
|
||||
return ret;
|
||||
}
|
||||
|
||||
qboolean SV_FlyDirection( edict_t *ent, vec3_t move )
|
||||
static qboolean SV_FlyDirection( edict_t *ent, vec3_t move )
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -455,7 +455,7 @@ qboolean SV_FlyDirection( edict_t *ent, vec3_t move )
|
||||
return ret;
|
||||
}
|
||||
|
||||
void SV_NewChaseDir( edict_t *actor, vec3_t destination, float dist )
|
||||
static void SV_NewChaseDir( edict_t *actor, vec3_t destination, float dist )
|
||||
{
|
||||
float deltax, deltay;
|
||||
float tempdir, olddir, turnaround;
|
||||
|
||||
@@ -1958,7 +1958,7 @@ SV_GetLightStyle
|
||||
needs to get correct working SV_LightPoint
|
||||
==================
|
||||
*/
|
||||
const char *GAME_EXPORT SV_GetLightStyle( int style )
|
||||
static const char *GAME_EXPORT SV_GetLightStyle( int style )
|
||||
{
|
||||
if( style < 0 ) style = 0;
|
||||
if( style >= MAX_LIGHTSTYLES )
|
||||
|
||||
Reference in New Issue
Block a user