mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: use Q_strchr in COM_FixSlashes
This commit is contained in:
@@ -677,10 +677,9 @@ Changes all '\' characters into '/' characters, in place.
|
||||
*/
|
||||
void COM_FixSlashes( char *pname )
|
||||
{
|
||||
for( ; *pname; pname++ )
|
||||
while(( pname = Q_strchr( pname, '\\' )))
|
||||
{
|
||||
if( *pname == '\\' )
|
||||
*pname = '/';
|
||||
*pname = '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user