… | |
… | |
33 | obj_count_in_map (maptile *map, int x, int y) |
33 | obj_count_in_map (maptile *map, int x, int y) |
34 | { |
34 | { |
35 | int count = 0; |
35 | int count = 0; |
36 | object *tmp; |
36 | object *tmp; |
37 | |
37 | |
38 | for (tmp = GET_MAP_OB (map, x, y); tmp != NULL; tmp = tmp->above) |
38 | for (tmp = GET_MAP_OB (map, x, y); tmp; tmp = tmp->above) |
39 | count++; |
39 | count++; |
|
|
40 | |
40 | return count; |
41 | return count; |
41 | } |
42 | } |
42 | |
43 | |
43 | /* put the decor into the map. Right now, it's very primitive. */ |
44 | /* put the decor into the map. Right now, it's very primitive. */ |
44 | |
45 | |