mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
compress // to /
This commit is contained in:
parent
5a1c57fd87
commit
2d6f8c6501
1 changed files with 6 additions and 1 deletions
|
@ -739,8 +739,13 @@ QFS_CompressPath (const char *pth)
|
|||
}
|
||||
while (*p && *p != '/')
|
||||
p++;
|
||||
if (*p == '/')
|
||||
if (*p == '/') {
|
||||
p++;
|
||||
for (d = p; *d == '/'; d++)
|
||||
;
|
||||
if (d != p)
|
||||
strcpy (p, d);
|
||||
}
|
||||
}
|
||||
|
||||
return path;
|
||||
|
|
Loading…
Reference in a new issue