… | |
… | |
117 | /* picks the right wall type for this square, to make it look nice, |
117 | /* picks the right wall type for this square, to make it look nice, |
118 | and have everything nicely joined. It uses the maze. */ |
118 | and have everything nicely joined. It uses the maze. */ |
119 | static object * |
119 | static object * |
120 | pick_joined_wall (object *the_wall, const layout &maze, int i, int j, random_map_params *RP) |
120 | pick_joined_wall (object *the_wall, const layout &maze, int i, int j, random_map_params *RP) |
121 | { |
121 | { |
122 | /* 1 = wall to left, |
|
|
123 | 2 = wall to right, |
|
|
124 | 4 = wall above |
|
|
125 | 8 = wall below */ |
|
|
126 | int surround_index = 0; |
|
|
127 | int l; |
122 | int l; |
128 | char wall_name[1024]; |
123 | char wall_name[1024]; |
129 | archetype *wall_arch = 0; |
124 | archetype *wall_arch = 0; |
130 | |
125 | |
131 | assign (wall_name, the_wall->arch->archname); |
126 | assign (wall_name, the_wall->arch->archname); |
… | |
… | |
252 | * global, previously-set variable, "wall_name" |
247 | * global, previously-set variable, "wall_name" |
253 | */ |
248 | */ |
254 | object * |
249 | object * |
255 | retrofit_joined_wall (maptile *the_map, int i, int j, int insert_flag, random_map_params *RP) |
250 | retrofit_joined_wall (maptile *the_map, int i, int j, int insert_flag, random_map_params *RP) |
256 | { |
251 | { |
257 | /* 1 = wall to left, |
|
|
258 | * 2 = wall to right, |
|
|
259 | * 4 = wall above |
|
|
260 | * 8 = wall below |
|
|
261 | */ |
|
|
262 | int surround_index = 0; |
|
|
263 | int l; |
252 | int l; |
264 | object *the_wall = 0; |
253 | object *the_wall = 0; |
265 | object *new_wall = 0; |
254 | object *new_wall = 0; |
266 | archetype *wall_arch = 0; |
255 | archetype *wall_arch = 0; |
267 | |
256 | |