summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 17:46:53 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 17:46:53 +0000
commit5b1fc7304a87362ae6ccca563f0ec1dc1405f9cc (patch)
tree05d786629f3b15056fb7340bb3adb319dadee54d /src/fileio.cpp
parentdb94e06094b5b8e46de6961ab081e508ee6a8f54 (diff)
downloadopenttd-5b1fc7304a87362ae6ccca563f0ec1dc1405f9cc.tar.xz
(svn r20194) -Fix: compilation with network disabled failed
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 33a4e3976..788fc7cfe 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -57,7 +57,6 @@ static bool _do_scan_working_directory = true;
extern char *_config_file;
extern char *_highscore_file;
-extern char *_log_file;
/* Get current position in file */
size_t FioGetPos()
@@ -1035,7 +1034,6 @@ void DeterminePaths(const char *exe)
DEBUG(misc, 3, "%s found as personal directory", _personal_dir);
_highscore_file = str_fmt("%shs.dat", _personal_dir);
- _log_file = str_fmt("%sopenttd.log", _personal_dir);
extern char *_hotkeys_file;
_hotkeys_file = str_fmt("%shotkeys.cfg", _personal_dir);
@@ -1066,6 +1064,9 @@ void DeterminePaths(const char *exe)
FioCreateDirectory(tmp);
free(tmp);
}
+
+ extern char *_log_file;
+ _log_file = str_fmt("%sopenttd.log", _personal_dir);
#else /* ENABLE_NETWORK */
/* If we don't have networking, we don't need to make the directory. But
* if it exists we keep it, otherwise remove it from the search paths. */