diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-22 00:07:49 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-22 20:08:41 +0100 |
commit | 440636cfb2a1d1304c976677e7571c917023d65c (patch) | |
tree | fc41beb3c998d6f72794290ba5aadd2375228ba6 /crawl-ref/source/main.cc | |
parent | a32b296a7ed8dc0b2aafddfc3f8a99b7b7376bcf (diff) | |
download | crawl-ref-440636cfb2a1d1304c976677e7571c917023d65c.tar.gz crawl-ref-440636cfb2a1d1304c976677e7571c917023d65c.zip |
Add an option, -builddb, to build the database and exit.
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 2bb5e2f881..0efc8cb662 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -3686,6 +3686,9 @@ static bool _initialise(void) // Read special levels and vaults. read_maps(); + if (crawl_state.build_db) + end(0); + cio_init(); // System initialisation stuff. |