From 4286f58f0b8785719777b12056a1fca8df45ab1e Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Sun, 18 Oct 2009 19:28:35 +0530 Subject: Add a call to reset the dungeon level before placing maps in los_maps test. Dungeon cruft left behind from other tests was causing los_maps to fail occasionally; we now wipe the level clean before placing maps to test. --- crawl-ref/source/test/los_maps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/test') diff --git a/crawl-ref/source/test/los_maps.lua b/crawl-ref/source/test/los_maps.lua index 09e173ea62..8048b7243e 100644 --- a/crawl-ref/source/test/los_maps.lua +++ b/crawl-ref/source/test/los_maps.lua @@ -11,6 +11,7 @@ local water = dgn.find_feature_number("deep_water") local function test_los_map(map) crawl.mesclr() + dgn.reset_level() -- choose random debug map; better choose all dgn.tags(map, "no_rotate no_vmirror no_hmirror no_pool_fixup") local name = dgn.name(map) @@ -61,4 +62,3 @@ local function test_los_maps() end test_los_maps() - -- cgit v1.2.3-54-g00ecf