summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-22 23:08:32 +0000
committerrubidium <rubidium@openttd.org>2011-01-22 23:08:32 +0000
commitd74fc0bee3fa3d9c5eb0308bc8cd12a7a3d2cb23 (patch)
treeb34470086dae808eb3037fd4c133436fbada3129 /src/fios.cpp
parent7eadf07e44d5f6afe097fc77beee4170c270b93c (diff)
downloadopenttd-d74fc0bee3fa3d9c5eb0308bc8cd12a7a3d2cb23.tar.xz
(svn r21895) -Cleanup: get rid of the unused SLD_NEW_GAME
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fios.cpp b/src/fios.cpp
index bdb56e50f..8dbb1fae8 100644
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -279,7 +279,7 @@ static void FiosGetFileList(SaveLoadDialogMode mode, fios_getlist_callback_proc
_fios_items.Clear();
/* A parent directory link exists if we are not in the root directory */
- if (!FiosIsRoot(_fios_path) && mode != SLD_NEW_GAME) {
+ if (!FiosIsRoot(_fios_path)) {
fios = _fios_items.Append();
fios->type = FIOS_TYPE_PARENT;
fios->mtime = 0;
@@ -288,7 +288,7 @@ static void FiosGetFileList(SaveLoadDialogMode mode, fios_getlist_callback_proc
}
/* Show subdirectories */
- if (mode != SLD_NEW_GAME && (dir = ttd_opendir(_fios_path)) != NULL) {
+ if ((dir = ttd_opendir(_fios_path)) != NULL) {
while ((dirent = readdir(dir)) != NULL) {
strecpy(d_name, FS2OTTD(dirent->d_name), lastof(d_name));
@@ -329,7 +329,7 @@ static void FiosGetFileList(SaveLoadDialogMode mode, fios_getlist_callback_proc
QSortT(_fios_items.Get(sort_start), _fios_items.Length() - sort_start, CompareFiosItems);
/* Show drives */
- if (mode != SLD_NEW_GAME) FiosGetDrives();
+ FiosGetDrives();
_fios_items.Compact();
}
@@ -433,7 +433,7 @@ static FiosType FiosGetScenarioListCallback(SaveLoadDialogMode mode, const char
return FIOS_TYPE_SCENARIO;
}
- if (mode == SLD_LOAD_GAME || mode == SLD_LOAD_SCENARIO || mode == SLD_NEW_GAME) {
+ if (mode == SLD_LOAD_GAME || mode == SLD_LOAD_SCENARIO) {
if (strcasecmp(ext, ".sv0") == 0 || strcasecmp(ext, ".ss0") == 0 ) {
GetOldSaveGameName(file, title, last);
return FIOS_TYPE_OLD_SCENARIO;