mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-08 05:11:51 +08:00
Rebrand from Xash3D to Xash3D FWGS. Add _format() attrubute to print-like functions
This commit is contained in:
@@ -2134,7 +2134,7 @@ SV_StartMusic
|
||||
void SV_StartMusic( const char *curtrack, const char *looptrack, long position )
|
||||
{
|
||||
MSG_BeginServerCmd( &sv.multicast, svc_stufftext );
|
||||
MSG_WriteString( &sv.multicast, va( "music \"%s\" \"%s\" %i\n", curtrack, looptrack, position ));
|
||||
MSG_WriteString( &sv.multicast, va( "music \"%s\" \"%s\" %li\n", curtrack, looptrack, position ));
|
||||
SV_Multicast( MSG_ALL, NULL, NULL, false, false );
|
||||
}
|
||||
|
||||
@@ -2404,6 +2404,7 @@ pfnClientCommand
|
||||
|
||||
=========
|
||||
*/
|
||||
void pfnClientCommand( edict_t* pEdict, char* szFmt, ... ) _format( 2 );
|
||||
void pfnClientCommand( edict_t* pEdict, char* szFmt, ... )
|
||||
{
|
||||
sv_client_t *cl;
|
||||
@@ -2834,6 +2835,7 @@ pfnAlertMessage
|
||||
|
||||
=============
|
||||
*/
|
||||
static void pfnAlertMessage( ALERT_TYPE type, char *szFmt, ... ) _format( 2 );
|
||||
static void pfnAlertMessage( ALERT_TYPE type, char *szFmt, ... )
|
||||
{
|
||||
char buffer[2048];
|
||||
@@ -2887,6 +2889,7 @@ pfnEngineFprintf
|
||||
OBSOLETE, UNUSED
|
||||
=============
|
||||
*/
|
||||
static void pfnEngineFprintf( FILE *pfile, char *szFmt, ... ) _format( 2 );
|
||||
static void pfnEngineFprintf( FILE *pfile, char *szFmt, ... )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ void Log_Open( void )
|
||||
}
|
||||
|
||||
if( fp ) svs.log.file = fp;
|
||||
Log_Printf( "Log file started (file \"%s\") (game \"%s\") (version \"%i/%.2f/%d\")\n",
|
||||
Log_Printf( "Log file started (file \"%s\") (game \"%s\") (version \"%i/%s/%d\")\n",
|
||||
szTestFile, Info_ValueForKey( SV_Serverinfo(), "*gamedir" ), PROTOCOL_VERSION, XASH_VERSION, Q_buildnum() );
|
||||
}
|
||||
|
||||
|
||||
@@ -739,7 +739,7 @@ void SV_AddToMaster( netadr_t from, sizebuf_t *msg )
|
||||
Info_SetValueForKey( s, "os", "w", len ); // Windows
|
||||
Info_SetValueForKey( s, "secure", "0", len ); // server anti-cheat
|
||||
Info_SetValueForKey( s, "lan", "0", len ); // LAN servers doesn't send info to master
|
||||
Info_SetValueForKey( s, "version", va( "%g", XASH_VERSION ), len ); // server region. 255 -- all regions
|
||||
Info_SetValueForKey( s, "version", va( "%s", XASH_VERSION ), len ); // server region. 255 -- all regions
|
||||
Info_SetValueForKey( s, "region", "255", len ); // server region. 255 -- all regions
|
||||
Info_SetValueForKey( s, "product", GI->gamefolder, len ); // product? Where is the difference with gamedir?
|
||||
|
||||
@@ -853,7 +853,8 @@ void SV_Init( void )
|
||||
|
||||
MSG_Init( &net_message, "NetMessage", net_message_buffer, sizeof( net_message_buffer ));
|
||||
|
||||
Q_snprintf( versionString, sizeof( versionString ), "%s: %.2f,%i,%i", "Xash3D", XASH_VERSION, PROTOCOL_VERSION, Q_buildnum() );
|
||||
Q_snprintf( versionString, sizeof( versionString ), "%s: %s-%s(%s-%s),%i,%i",
|
||||
XASH_ENGINE_NAME, XASH_VERSION, Q_buildcommit(), Q_buildos(), Q_buildarch(), PROTOCOL_VERSION, Q_buildnum() );
|
||||
Cvar_FullSet( "sv_version", versionString, FCVAR_READ_ONLY );
|
||||
|
||||
SV_ClearGameState (); // delete all temporary *.hl files
|
||||
|
||||
Reference in New Issue
Block a user