… | |
… | |
30 | |
30 | |
31 | /** |
31 | /** |
32 | * Check if objects on a square interfere with building |
32 | * Check if objects on a square interfere with building |
33 | */ |
33 | */ |
34 | int |
34 | int |
35 | can_build_over (mapstruct *map, object *tmp, short x, short y) |
35 | can_build_over (maptile *map, object *tmp, short x, short y) |
36 | { |
36 | { |
37 | object *ob; |
37 | object *ob; |
38 | |
38 | |
39 | ob = GET_MAP_OB (map, x, y); |
39 | ob = GET_MAP_OB (map, x, y); |
40 | while (ob) |
40 | while (ob) |
… | |
… | |
73 | |
73 | |
74 | /** |
74 | /** |
75 | * Erases marking runes at specified location |
75 | * Erases marking runes at specified location |
76 | */ |
76 | */ |
77 | void |
77 | void |
78 | remove_marking_runes (mapstruct *map, short x, short y) |
78 | remove_marking_runes (maptile *map, short x, short y) |
79 | { |
79 | { |
80 | object *rune; |
80 | object *rune; |
81 | object *next; |
81 | object *next; |
82 | |
82 | |
83 | rune = GET_MAP_OB (map, x, y); |
83 | rune = GET_MAP_OB (map, x, y); |
… | |
… | |
99 | * \return 'connected' value with no item, or -1 if failure. |
99 | * \return 'connected' value with no item, or -1 if failure. |
100 | * |
100 | * |
101 | * Tries 1000 random values, then returns -1. |
101 | * Tries 1000 random values, then returns -1. |
102 | */ |
102 | */ |
103 | int |
103 | int |
104 | find_unused_connected_value (mapstruct *map) |
104 | find_unused_connected_value (maptile *map) |
105 | { |
105 | { |
106 | int connected = 0; |
106 | int connected = 0; |
107 | int itest = 0; |
107 | int itest = 0; |
108 | oblinkpt *obp; |
108 | oblinkpt *obp; |
109 | |
109 | |
… | |
… | |
208 | |
208 | |
209 | /** |
209 | /** |
210 | * Returns first item of type WALL. |
210 | * Returns first item of type WALL. |
211 | */ |
211 | */ |
212 | object * |
212 | object * |
213 | get_wall (mapstruct *map, int x, int y) |
213 | get_wall (maptile *map, int x, int y) |
214 | { |
214 | { |
215 | object *wall; |
215 | object *wall; |
216 | |
216 | |
217 | wall = GET_MAP_OB (map, x, y); |
217 | wall = GET_MAP_OB (map, x, y); |
218 | while (wall && (WALL != wall->type)) |
218 | while (wall && (WALL != wall->type)) |
… | |
… | |
231 | * Basically it ensures the correct wall is put where needed. |
231 | * Basically it ensures the correct wall is put where needed. |
232 | * |
232 | * |
233 | * Note: x & y must be valid map coordinates. |
233 | * Note: x & y must be valid map coordinates. |
234 | */ |
234 | */ |
235 | void |
235 | void |
236 | fix_walls (mapstruct *map, int x, int y) |
236 | fix_walls (maptile *map, int x, int y) |
237 | { |
237 | { |
238 | int connect; |
238 | int connect; |
239 | object *wall; |
239 | object *wall; |
240 | char archetype[MAX_BUF]; |
240 | char archetype[MAX_BUF]; |
241 | char *underscore; |
241 | char *underscore; |