mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-22 08:52:32 +01:00
engine: fix various warnings
This commit is contained in:
parent
efaf7ac622
commit
155eb1ba58
@ -285,9 +285,9 @@ typedef struct cl_enginefuncs_s
|
||||
const char *(*LocalPlayerInfo_ValueForKey)( const char* key );
|
||||
int (*pfnVGUI2DrawCharacter)( int x, int y, int ch, unsigned int font );
|
||||
int (*pfnVGUI2DrawCharacterAdditive)( int x, int y, int ch, int r, int g, int b, unsigned int font );
|
||||
unsigned int (*pfnGetApproxWavePlayLen)( char *filename );
|
||||
unsigned int (*pfnGetApproxWavePlayLen)( const char *filename );
|
||||
void* (*GetCareerGameUI)( void ); // g-cont. !!!! potential crash-point!
|
||||
void (*Cvar_Set)( char *name, char *value );
|
||||
void (*Cvar_Set)( const char *name, const char *value );
|
||||
int (*pfnIsPlayingCareerMatch)( void );
|
||||
void (*pfnPlaySoundVoiceByName)( char *szSound, float volume, int pitch );
|
||||
void (*pfnPrimeMusicStream)( char *filename, int looping );
|
||||
|
@ -3402,7 +3402,8 @@ void GAME_EXPORT NetAPI_SendRequest( int context, int request, int flags, double
|
||||
char fullquery[512] = "1\xFF" "0.0.0.0:0\0" "\\gamedir\\";
|
||||
|
||||
// make sure what port is specified
|
||||
if( !nr->resp.remote_address.port ) nr->resp.remote_address.port = MSG_BigShort( PORT_MASTER );
|
||||
if( !nr->resp.remote_address.port )
|
||||
nr->resp.remote_address.port = MSG_BigShort( PORT_MASTER );
|
||||
|
||||
// grab the list from the master server
|
||||
Q_strcpy( &fullquery[22], GI->gamefolder );
|
||||
@ -3873,9 +3874,9 @@ static cl_enginefunc_t gEngfuncs =
|
||||
LocalPlayerInfo_ValueForKey,
|
||||
pfnVGUI2DrawCharacter,
|
||||
pfnVGUI2DrawCharacterAdditive,
|
||||
(void*)Sound_GetApproxWavePlayLen,
|
||||
Sound_GetApproxWavePlayLen,
|
||||
GetCareerGameInterface,
|
||||
(void*)Cvar_Set,
|
||||
Cvar_Set,
|
||||
pfnIsCareerMatch,
|
||||
pfnPlaySoundVoiceByName,
|
||||
pfnMP3_InitStream,
|
||||
|
@ -53,4 +53,6 @@ qboolean R_Init( void );
|
||||
void R_Shutdown( void );
|
||||
void R_UpdateRefState( void );
|
||||
|
||||
extern triangleapi_t gTriApi;
|
||||
|
||||
#endif // REF_COMMON_H
|
||||
|
@ -545,7 +545,7 @@ cmd_t *GAME_EXPORT Cmd_GetNextFunctionHandle( cmd_t *cmd )
|
||||
Cmd_GetName
|
||||
============
|
||||
*/
|
||||
char *GAME_EXPORT Cmd_GetName( cmd_t *cmd )
|
||||
const char *GAME_EXPORT Cmd_GetName( cmd_t *cmd )
|
||||
{
|
||||
return cmd->name;
|
||||
}
|
||||
|
@ -858,7 +858,7 @@ int COM_ExpandFilename( const char *fileName, char *nameOutBuffer, int nameOutBu
|
||||
struct cmd_s *Cmd_GetFirstFunctionHandle( void );
|
||||
struct cmd_s *Cmd_GetNextFunctionHandle( struct cmd_s *cmd );
|
||||
struct cmdalias_s *Cmd_AliasGetList( void );
|
||||
char *Cmd_GetName( struct cmd_s *cmd );
|
||||
const char *Cmd_GetName( struct cmd_s *cmd );
|
||||
struct pmtrace_s *PM_TraceLine( float *start, float *end, int flags, int usehull, int ignore_pe );
|
||||
void SV_StartSound( edict_t *ent, int chan, const char *sample, float vol, float attn, int flags, int pitch );
|
||||
void SV_StartMusic( const char *curtrack, const char *looptrack, int position );
|
||||
|
Loading…
Reference in New Issue
Block a user