mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 15:11:54 +00:00
(svn r1409) Simplify some preprocessor magic
This commit is contained in:
parent
a3c0e81230
commit
a6ba0d3fbe
7
ttd.c
7
ttd.c
@ -527,16 +527,13 @@ void LoadIntroGame()
|
|||||||
|
|
||||||
// Generate a world.
|
// Generate a world.
|
||||||
sprintf(filename, "%sopntitle.dat", _path.data_dir);
|
sprintf(filename, "%sopntitle.dat", _path.data_dir);
|
||||||
if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
|
if (SaveOrLoad(filename, SL_LOAD) != SL_OK) {
|
||||||
#if defined SECOND_DATA_DIR
|
#if defined SECOND_DATA_DIR
|
||||||
{
|
|
||||||
sprintf(filename, "%sopntitle.dat", _path.second_data_dir);
|
sprintf(filename, "%sopntitle.dat", _path.second_data_dir);
|
||||||
if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
|
if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
|
||||||
#endif
|
#endif
|
||||||
GenerateWorld(1); // if failed loading, make empty world.
|
GenerateWorld(1); // if failed loading, make empty world.
|
||||||
#if defined SECOND_DATA_DIR
|
}
|
||||||
}
|
|
||||||
#endif
|
|
||||||
_opt.currency = _new_opt.currency;
|
_opt.currency = _new_opt.currency;
|
||||||
|
|
||||||
_pause = 0;
|
_pause = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user