Purely whitespace cleanups

This commit is contained in:
Joseph Carter 2001-03-09 07:55:25 +00:00
parent ddd4c279fa
commit 055fe8d222

View file

@ -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;