diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-25 16:10:59 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-25 17:19:14 +0100 |
commit | 2627a794d8f3b612053293077276fdfaabbd93a4 (patch) | |
tree | 7f34f362ff3eba61228b312162fd109b32182707 /crawl-ref/source/dbg-maps.cc | |
parent | 99e9af0c4242aef7f3cde3274d7b75968b3b245d (diff) | |
download | crawl-ref-2627a794d8f3b612053293077276fdfaabbd93a4.tar.gz crawl-ref-2627a794d8f3b612053293077276fdfaabbd93a4.zip |
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.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r-- | crawl-ref/source/dbg-maps.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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()) { |