mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: remove Q_colorstr, as it's completely useless and checking for color string is easy actually
This commit is contained in:
@@ -33,26 +33,6 @@ void Q_strnlwr( const char *in, char *out, size_t size_out )
|
||||
out[i] = Q_tolower( out[i] );
|
||||
}
|
||||
|
||||
size_t Q_colorstr( const char *string )
|
||||
{
|
||||
const char *p = string;
|
||||
size_t len = 0;
|
||||
|
||||
if( !string )
|
||||
return len;
|
||||
|
||||
while(( p = Q_strchr( p, '^' )))
|
||||
{
|
||||
if( IsColorString( p ))
|
||||
{
|
||||
len += 2;
|
||||
p += 2;
|
||||
}
|
||||
}
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
int Q_atoi_hex( int sign, const char *str )
|
||||
{
|
||||
int c, val = 0;
|
||||
|
||||
Reference in New Issue
Block a user