summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openttd.c b/openttd.c
index f0af79faf..28b800ab2 100644
--- a/openttd.c
+++ b/openttd.c
@@ -282,12 +282,13 @@ static void LoadIntroGame(void)
// Generate a world.
sprintf(filename, "%sopntitle.dat", _path.data_dir);
- if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
#if defined SECOND_DATA_DIR
+ if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
sprintf(filename, "%sopntitle.dat", _path.second_data_dir);
- if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
+ }
#endif
- GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world.
+ if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
+ GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world.
}
_pause = 0;