Allocate rects dynamically

... instead of hard-coding them to 50. New allocated value is
(COLNO*ROWNO)/30, which is slightly higher (56), and that formula
seems to work for hypothetical larger maps too.
This commit is contained in:
Pasi Kallinen
2022-01-05 17:35:30 +02:00
parent 7238622621
commit e5ee580961
3 changed files with 22 additions and 5 deletions

View File

@@ -1082,6 +1082,7 @@ freedynamicdata(void)
free_waterlevel();
free_dungeons();
free_CapMons();
free_rect();
/* some pointers in iflags */
if (iflags.wc_font_map)