summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-09 10:56:12 +0000
committerDarkvater <darkvater@openttd.org>2006-12-09 10:56:12 +0000
commitf87c8834e23188f27cd1fd1626c040d3ebafb998 (patch)
tree821bb8da5168e61028bf8fc5f43ea46f076a70e9 /openttd.c
parent9a0917141b99cea7703e28af3c46cdbc86f23629 (diff)
downloadopenttd-f87c8834e23188f27cd1fd1626c040d3ebafb998.tar.xz
(svn r7449) -Codechange: Rename _path to _paths as it is technically more correct, but mainly because
it interferes with OS/2 symbol in libc (psmedley)
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openttd.c b/openttd.c
index 01e0fd8c6..fa14a0f9a 100644
--- a/openttd.c
+++ b/openttd.c
@@ -289,10 +289,10 @@ static void LoadIntroGame(void)
SetupColorsAndInitialWindow();
// Generate a world.
- snprintf(filename, lengthof(filename), "%sopntitle.dat", _path.data_dir);
+ snprintf(filename, lengthof(filename), "%sopntitle.dat", _paths.data_dir);
#if defined SECOND_DATA_DIR
if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
- snprintf(filename, lengthof(filename), "%sopntitle.dat", _path.second_data_dir);
+ snprintf(filename, lengthof(filename), "%sopntitle.dat", _paths.second_data_dir);
}
#endif
if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
@@ -890,7 +890,7 @@ static void DoAutosave(void)
const Player *p = GetPlayer(_local_player);
char* s = buf;
- s += snprintf(buf, lengthof(buf), "%s%s", _path.autosave_dir, PATHSEP);
+ s += snprintf(buf, lengthof(buf), "%s%s", _paths.autosave_dir, PATHSEP);
SetDParam(0, p->name_1);
SetDParam(1, p->name_2);
@@ -898,7 +898,7 @@ static void DoAutosave(void)
s = GetString(s, STR_4004, lastof(buf));
strecpy(s, ".sav", lastof(buf));
} else { /* generate a savegame name and number according to _patches.max_num_autosaves */
- snprintf(buf, lengthof(buf), "%s%sautosave%d.sav", _path.autosave_dir, PATHSEP, _autosave_ctr);
+ snprintf(buf, lengthof(buf), "%s%sautosave%d.sav", _paths.autosave_dir, PATHSEP, _autosave_ctr);
_autosave_ctr++;
if (_autosave_ctr >= _patches.max_num_autosaves) {