From 2627a794d8f3b612053293077276fdfaabbd93a4 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 25 Nov 2009 16:10:59 +0100 Subject: Fix map_stat_gen assert. magic_mapping was called without center, which caused it to use player position, which was the origin, which caused radius_iterator to not do bounds checking. Now sets center of map. --- crawl-ref/source/dbg-maps.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/dbg-maps.cc') diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc index 9ec020e217..7766895590 100644 --- a/crawl-ref/source/dbg-maps.cc +++ b/crawl-ref/source/dbg-maps.cc @@ -156,7 +156,8 @@ static bool mg_do_build_level(int niters) { unwind_bool wiz(you.wizard, true); - magic_mapping(1000, 100, true, true); + magic_mapping(1000, 100, true, true, false, false, + coord_def(GXM/2, GYM/2)); } if (_mg_is_disconnected_level()) { -- cgit v1.2.3-54-g00ecf