… | |
… | |
29 | #define NR_DECOR_OPTIONS 1 |
29 | #define NR_DECOR_OPTIONS 1 |
30 | |
30 | |
31 | /* return a simple count of objects in the map at x,y. */ |
31 | /* return a simple count of objects in the map at x,y. */ |
32 | |
32 | |
33 | int |
33 | int |
34 | obj_count_in_map (mapstruct *map, int x, int y) |
34 | obj_count_in_map (maptile *map, int x, int y) |
35 | { |
35 | { |
36 | int count = 0; |
36 | int count = 0; |
37 | object *tmp; |
37 | object *tmp; |
38 | |
38 | |
39 | for (tmp = get_map_ob (map, x, y); tmp != NULL; tmp = tmp->above) |
39 | for (tmp = get_map_ob (map, x, y); tmp != NULL; tmp = tmp->above) |
… | |
… | |
42 | } |
42 | } |
43 | |
43 | |
44 | /* 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. */ |
45 | |
45 | |
46 | void |
46 | void |
47 | put_decor (mapstruct *map, char **maze, char *decorstyle, int decor_option, RMParms * RP) |
47 | put_decor (maptile *map, char **maze, char *decorstyle, int decor_option, RMParms * RP) |
48 | { |
48 | { |
49 | mapstruct *decor_map; |
49 | maptile *decor_map; |
50 | char style_name[256]; |
50 | char style_name[256]; |
51 | |
51 | |
52 | sprintf (style_name, "/styles/decorstyles"); |
52 | sprintf (style_name, "/styles/decorstyles"); |
53 | |
53 | |
54 | decor_map = find_style (style_name, decorstyle, -1); |
54 | decor_map = find_style (style_name, decorstyle, -1); |