summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-20 10:23:39 +0000
committerrubidium <rubidium@openttd.org>2009-08-20 10:23:39 +0000
commit7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d (patch)
treefeb24d4a4f522305f7df61aaf26c499eb38c6b6c /src/fios.cpp
parent0188ebad5649d4c698245a2fef9039e6155b5f22 (diff)
downloadopenttd-7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d.tar.xz
(svn r17228) -Codechange: some coding style fixes
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fios.cpp b/src/fios.cpp
index 56048197f..bee76a1d6 100644
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -102,11 +102,14 @@ const char *FiosBrowseTo(const FiosItem *item)
s[0] = '\0'; // Remove last path separator character, so we can go up one level.
}
s = strrchr(path, PATHSEPCHAR);
- if (s != NULL) s[1] = '\0'; // go up a directory
+ if (s != NULL) {
+ s[1] = '\0'; // go up a directory
#if defined(__MORPHOS__) || defined(__AMIGAOS__)
/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
- else if ((s = strrchr(path, ':')) != NULL) s[1] = '\0';
+ } else if ((s = strrchr(path, ':')) != NULL) {
+ s[1] = '\0';
#endif
+ }
break;
}