mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Purely whitespace cleanups
This commit is contained in:
parent
ddd4c279fa
commit
055fe8d222
1 changed files with 5 additions and 7 deletions
|
@ -171,14 +171,13 @@ searchpath_t *com_base_searchpaths; // without gamedirs
|
|||
void
|
||||
COM_FileBase (char *in, char *out)
|
||||
{
|
||||
char *slash, *dot;
|
||||
char *s;
|
||||
char *slash, *dot;
|
||||
char *s;
|
||||
|
||||
slash = in;
|
||||
dot = NULL;
|
||||
s = in;
|
||||
while (*s)
|
||||
{
|
||||
while (*s) {
|
||||
if (*s == '/')
|
||||
slash = s + 1;
|
||||
if (*s == '.')
|
||||
|
@ -188,9 +187,8 @@ COM_FileBase (char *in, char *out)
|
|||
if (dot == NULL)
|
||||
dot = s;
|
||||
if (dot - slash < 2)
|
||||
strcpy (out,"?model?");
|
||||
else
|
||||
{
|
||||
strcpy (out, "?model?");
|
||||
else {
|
||||
while (slash < dot)
|
||||
*out++ = *slash++;
|
||||
*out++ = 0;
|
||||
|
|
Loading…
Reference in a new issue