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.16 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.17 by root, Sat Jan 27 00:56:48 2007 UTC

144 if (!strcmp (w_style, "none")) 144 if (!strcmp (w_style, "none"))
145 return; 145 return;
146 sprintf (styledirname, "%s", "/styles/wallstyles"); 146 sprintf (styledirname, "%s", "/styles/wallstyles");
147 sprintf (stylefilepath, "%s/%s", styledirname, w_style); 147 sprintf (stylefilepath, "%s/%s", styledirname, w_style);
148 style_map = find_style (styledirname, w_style, -1); 148 style_map = find_style (styledirname, w_style, -1);
149 if (style_map == 0) 149 if (!style_map)
150 return; 150 return;
151 151
152 /* fill up the map with the given floor style */ 152 /* fill up the map with the given floor style */
153 if ((the_wall = pick_random_object (style_map)) != NULL) 153 if ((the_wall = pick_random_object (style_map)) != NULL)
154 { 154 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines