summaryrefslogtreecommitdiff
path: root/fileio.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-01 07:36:15 +0000
committertron <tron@openttd.org>2006-02-01 07:36:15 +0000
commit84fb96fe85e75b038b527471428189170021f8b7 (patch)
treea7d69d6390e8880d090f15560161694c3ce6126d /fileio.c
parent22dc05faf2219f6e3803f9cbff92249823bb11eb (diff)
downloadopenttd-84fb96fe85e75b038b527471428189170021f8b7.tar.xz
(svn r3511) More whitespace ([FS#46] by Rubidium)
Diffstat (limited to 'fileio.c')
-rw-r--r--fileio.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fileio.c b/fileio.c
index d0013cf1f..fd1008d15 100644
--- a/fileio.c
+++ b/fileio.c
@@ -59,7 +59,7 @@ byte FioReadByte(void)
void FioSkipBytes(int n)
{
- for(;;) {
+ for (;;) {
int m = min(_fio.buffer_end - _fio.buffer, n);
_fio.buffer += m;
n -= m;
@@ -117,7 +117,7 @@ bool FiosCheckFileExists(const char *filename)
if (f == NULL) {
char *s;
// Make lower case and try again
- for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
@@ -125,7 +125,7 @@ bool FiosCheckFileExists(const char *filename)
// tries in the 2nd data directory
if (f == NULL) {
sprintf(buf, "%s%s", _path.second_data_dir, filename);
- for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
}
@@ -153,7 +153,7 @@ FILE *FioFOpenFile(const char *filename)
if (f == NULL) {
char *s;
// Make lower case and try again
- for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
@@ -161,7 +161,7 @@ FILE *FioFOpenFile(const char *filename)
// tries in the 2nd data directory
if (f == NULL) {
sprintf(buf, "%s%s", _path.second_data_dir, filename);
- for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
}
@@ -184,7 +184,7 @@ void FioOpenFile(int slot, const char *filename)
if (f == NULL) {
char *s;
// Make lower case and try again
- for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
@@ -192,7 +192,7 @@ void FioOpenFile(int slot, const char *filename)
// tries in the 2nd data directory
if (f == NULL) {
sprintf(buf, "%s%s", _path.second_data_dir, filename);
- for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
}