engine: rename Q_cleanstr to something more meaningful

This commit is contained in:
Velaron 2022-06-10 18:43:04 +03:00 committed by a1batross
parent 568c7fd917
commit 15dc25d2cd
3 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ void Sys_PrintLog( const char *pMsg )
crt_tm = localtime( &crt_time );
// strip color codes
Q_cleanstr( pMsg, pMsg );
COM_StripColors( pMsg, pMsg );
// platform-specific output
#if XASH_ANDROID && !XASH_DEDICATED

View File

@ -615,7 +615,7 @@ char *Q_strpbrk(const char *s, const char *accept)
return NULL;
}
void Q_cleanstr( const char *in, char *out )
void COM_StripColors( const char *in, char *out )
{
while ( *in )
{

View File

@ -73,7 +73,7 @@ int Q_vsnprintf( char *buffer, size_t buffersize, const char *format, va_list ar
int Q_snprintf( char *buffer, size_t buffersize, const char *format, ... ) _format( 3 );
int Q_sprintf( char *buffer, const char *format, ... ) _format( 2 );
char *Q_strpbrk(const char *s, const char *accept);
void Q_cleanstr( char *in, char *out );
void COM_StripColors( const char *in, char *out );
#define Q_memprint( val ) Q_pretifymem( val, 2 )
char *Q_pretifymem( float value, int digitsafterdecimal );
char *va( const char *format, ... ) _format( 1 );