From f87c8834e23188f27cd1fd1626c040d3ebafb998 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 9 Dec 2006 10:56:12 +0000 Subject: (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) --- openttd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openttd.c') 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) { -- cgit v1.2.3-70-g09d2