summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-18 14:41:24 +0000
committertron <tron@openttd.org>2006-02-18 14:41:24 +0000
commit49c7eb934be0dc92d640ea3a32c02dddcc83369a (patch)
tree2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /openttd.c
parent6cfefdb2750d9beccb350ea47db9e2edaa61655c (diff)
downloadopenttd-49c7eb934be0dc92d640ea3a32c02dddcc83369a.tar.xz
(svn r3613) Some more const, indentation, whitespace and similar stuff
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;