equal
deleted
inserted
replaced
26 return FALSE; |
26 return FALSE; |
27 } |
27 } |
28 return TRUE; |
28 return TRUE; |
29 } |
29 } |
30 |
30 |
31 int is_new_map(struct Map maps[], int depth) |
31 int is_new_map(const struct Map maps[], const int depth) |
32 { |
32 { |
33 struct Map *m; |
33 const struct Map *m = &maps[depth]; |
34 int i; |
34 int i; |
35 extern int max_depth; |
35 extern int max_depth; |
36 |
|
37 m = &maps[depth]; |
|
38 |
36 |
39 for(i=0; i<max_depth; i++) |
37 for(i=0; i<max_depth; i++) |
40 { |
38 { |
41 /* No l'hem de comparar amb ell mateix */ |
39 /* No l'hem de comparar amb ell mateix */ |
42 if (i == depth) |
40 if (i == depth) |