diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-13 00:00:29 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-13 00:00:29 +0100 |
commit | 7bd75d9f1c4cc3dfcd5716a95d125d13e8b77ebf (patch) | |
tree | d0d343f601182875cab6ae57e58d86db55faf816 /crawl-ref/source/main.cc | |
parent | 93b425987df9befd1dbe2e495cd68f48b5ea1936 (diff) | |
download | crawl-ref-7bd75d9f1c4cc3dfcd5716a95d125d13e8b77ebf.tar.gz crawl-ref-7bd75d9f1c4cc3dfcd5716a95d125d13e8b77ebf.zip |
Draw the Tiles splash screen before initialising the database.
It leaves a better impression if the player has a pretty screen to
look at while waiting for the database getting ready. (KiloByte)
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 03cd4ae32c..d85f4941ba 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -3749,6 +3749,17 @@ static bool _initialise(void) // Set up the Lua interpreter for the dungeon builder. init_dungeon_lua(); +#ifdef USE_TILE + // Draw the splash screen before the database gets initialised as that + // may take awhile and it's better if the player can look at a pretty + // screen while this happens. + if (!crawl_state.map_stat_gen && !crawl_state.test + && Options.tile_title_screen) + { + tiles.draw_title(); + } +#endif + // Initialise internal databases. databaseSystemInit(); |