diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-06-21 13:39:34 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-06-21 13:39:34 +0200 |
commit | 11135592c4f32fac7ebe14c504dfd27c00e77501 (patch) | |
tree | bb341ad9a9b9c3e37ededbf94b6a6a49608e476e /crawl-ref/source/l_crawl.cc | |
parent | b35ddcec3c65922f87eb6737516f1bd4c35b4652 (diff) | |
download | crawl-ref-11135592c4f32fac7ebe14c504dfd27c00e77501.tar.gz crawl-ref-11135592c4f32fac7ebe14c504dfd27c00e77501.zip |
Let vault code work normally during --mapstat and --test.
Some layouts and vaults are lazy buggers who skip work during initial
validation.
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r-- | crawl-ref/source/l_crawl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc index 4afb17f319..6bc5d10647 100644 --- a/crawl-ref/source/l_crawl.cc +++ b/crawl-ref/source/l_crawl.cc @@ -656,7 +656,9 @@ static int crawl_article_a(lua_State *ls) return 1; } -LUARET1(crawl_game_started, boolean, crawl_state.need_save) +LUARET1(crawl_game_started, boolean, crawl_state.need_save + || crawl_state.map_stat_gen + || crawl_state.test) LUARET1(crawl_stat_gain_prompt, boolean, crawl_state.stat_gain_prompt) LUARET1(crawl_random2, number, random2(luaL_checkint(ls, 1))) LUARET1(crawl_one_chance_in, boolean, one_chance_in(luaL_checkint(ls, 1))) |