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.6 by root, Thu Sep 14 22:34:03 2006 UTC vs.
Revision 1.7 by root, Sat Sep 16 22:24:13 2006 UTC

80 * Since this is part of the random map code, presumption 80 * Since this is part of the random map code, presumption
81 * is that this is not a tiled map. 81 * is that this is not a tiled map.
82 * What is considered blocking and not is somewhat hard coded. 82 * What is considered blocking and not is somewhat hard coded.
83 */ 83 */
84int 84int
85surround_flag3 (mapstruct *map, sint16 i, sint16 j, RMParms * RP) 85surround_flag3 (maptile *map, sint16 i, sint16 j, RMParms * RP)
86{ 86{
87 /* 87 /*
88 * 1 = blocked to left, 88 * 1 = blocked to left,
89 * 2 = blocked to right, 89 * 2 = blocked to right,
90 * 4 = blocked above 90 * 4 = blocked above
106} 106}
107 107
108/* like surround_flag2, except it checks a map, not a layout. */ 108/* like surround_flag2, except it checks a map, not a layout. */
109 109
110int 110int
111surround_flag4 (mapstruct *map, int i, int j, RMParms * RP) 111surround_flag4 (maptile *map, int i, int j, RMParms * RP)
112{ 112{
113 /* 1 = blocked to left, 113 /* 1 = blocked to left,
114 2 = blocked to right, 114 2 = blocked to right,
115 4 = blocked above 115 4 = blocked above
116 8 = blocked below */ 116 8 = blocked below */
130 130
131/* takes a map and a layout, and puts walls in the map (picked from 131/* takes a map and a layout, and puts walls in the map (picked from
132 w_style) at '#' marks. */ 132 w_style) at '#' marks. */
133 133
134void 134void
135make_map_walls (mapstruct *map, char **layout, char *w_style, RMParms * RP) 135make_map_walls (maptile *map, char **layout, char *w_style, RMParms * RP)
136{ 136{
137 char styledirname[256]; 137 char styledirname[256];
138 char stylefilepath[256]; 138 char stylefilepath[256];
139 mapstruct *style_map = 0; 139 maptile *style_map = 0;
140 object *the_wall; 140 object *the_wall;
141 141
142 /* get the style map */ 142 /* get the style map */
143 if (!strcmp (w_style, "none")) 143 if (!strcmp (w_style, "none"))
144 return; 144 return;
288 * remove anything. It depends on the 288 * remove anything. It depends on the
289 * global, previously-set variable, "wall_name" 289 * global, previously-set variable, "wall_name"
290 */ 290 */
291 291
292object * 292object *
293retrofit_joined_wall (mapstruct *the_map, int i, int j, int insert_flag, RMParms * RP) 293retrofit_joined_wall (maptile *the_map, int i, int j, int insert_flag, RMParms * RP)
294{ 294{
295 /* 1 = wall to left, 295 /* 1 = wall to left,
296 * 2 = wall to right, 296 * 2 = wall to right,
297 * 4 = wall above 297 * 4 = wall above
298 * 8 = wall below 298 * 8 = wall below

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines