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

Comparing deliantra/server/random_maps/special.C (file contents):
Revision 1.58 by root, Sun Aug 22 20:36:37 2010 UTC vs.
Revision 1.59 by root, Tue Oct 12 06:20:13 2010 UTC

223 break; 223 break;
224 } 224 }
225 } 225 }
226 226
227 if (!hole_type) 227 if (!hole_type)
228 hole_type = rmg_rndm (NR_OF_HOLE_TYPES) + 1; 228 hole_type = rmg_rndm (1, NR_OF_HOLE_TYPES);
229 229
230 const char *style, *decor, *mon; 230 const char *style, *decor, *mon;
231 int g_xsize, g_ysize; 231 int g_xsize, g_ysize;
232 232
233 switch (hole_type) 233 switch (hole_type)
313} 313}
314 314
315void 315void
316place_specials_in_map (maptile *map, layout &maze, random_map_params *RP) 316place_specials_in_map (maptile *map, layout &maze, random_map_params *RP)
317{ 317{
318 switch (rmg_rndm (NUM_OF_SPECIAL_TYPES)) 318 switch (rmg_rndm (NUM_OF_SPECIAL_TYPES)) // can be NO_SPECIAL as well
319 { 319 {
320 case SPECIAL_SUBMAP: 320 case SPECIAL_SUBMAP:
321 { 321 {
322 /* includes a special map into the random map being made. */ 322 /* includes a special map into the random map being made. */
323 maptile *special_map = find_style ("/styles/specialmaps", 0, RP->difficulty, true); 323 maptile *special_map = find_style ("/styles/specialmaps", 0, RP->difficulty, true);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines