ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/wall.C
(Generate patch)

Comparing deliantra/server/random_maps/wall.C (file contents):
Revision 1.46 by root, Tue Jan 3 11:25:34 2012 UTC vs.
Revision 1.47 by root, Fri Jan 27 22:00:40 2012 UTC

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. */
119static object * 119static object *
120pick_joined_wall (object *the_wall, const layout &maze, int i, int j, random_map_params *RP) 120pick_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 */
254object * 249object *
255retrofit_joined_wall (maptile *the_map, int i, int j, int insert_flag, random_map_params *RP) 250retrofit_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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines