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:
@@ -2171,6 +2171,7 @@ extern boolean create_particular(void);
|
||||
/* ### rect.c ### */
|
||||
|
||||
extern void init_rect(void);
|
||||
extern void free_rect(void);
|
||||
extern NhRect *get_rect(NhRect *);
|
||||
extern NhRect *rnd_rect(void);
|
||||
extern void remove_rect(NhRect *);
|
||||
|
||||
Reference in New Issue
Block a user