(svn r20194) -Fix: compilation with network disabled failed

This commit is contained in:
rubidium
2010-07-19 17:46:53 +00:00
parent db94e06094
commit 5b1fc7304a
3 changed files with 11 additions and 7 deletions

View File

@@ -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. */