changeset 10 | 9148590f009d |
parent 8 | b41a580b3abe |
child 26 | 95fccfcbd04c |
--- a/map.c Sat May 06 13:24:06 2006 +0200 +++ b/map.c Sat May 06 15:42:06 2006 +0200 @@ -28,13 +28,11 @@ return TRUE; } -int is_new_map(struct Map maps[], int depth) +int is_new_map(const struct Map maps[], const int depth) { - struct Map *m; + const struct Map *m = &maps[depth]; int i; - extern int max_depth; - - m = &maps[depth]; + extern int max_depth; for(i=0; i<max_depth; i++) {