From 055fe8d22216a8f428cf299ab21ba335e7cdb5e7 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Fri, 9 Mar 2001 07:55:25 +0000 Subject: [PATCH] Purely whitespace cleanups --- qw/source/quakefs.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/qw/source/quakefs.c b/qw/source/quakefs.c index 7408e67c5..fb83f2599 100644 --- a/qw/source/quakefs.c +++ b/qw/source/quakefs.c @@ -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;