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.45 by root, Tue Apr 13 02:39:53 2010 UTC vs.
Revision 1.46 by root, Tue Apr 13 02:52:10 2010 UTC

293 rp.difficulty_increase = RP->difficulty_increase; 293 rp.difficulty_increase = RP->difficulty_increase;
294 rp.decoroptions = -1; 294 rp.decoroptions = -1;
295 rp.orientation = 1; 295 rp.orientation = 1;
296 rp.random_seed = RP->random_seed ^ 0xdeadbeef; 296 rp.random_seed = RP->random_seed ^ 0xdeadbeef;
297 rp.region = RP->region; 297 rp.region = RP->region;
298 rp.difficulty=99;//D
298 299
299 write_map_parameters_to_string (buf, &rp); 300 write_map_parameters_to_string (buf, &rp);
300 delete &rp; 301 delete &rp;
301 } 302 }
302 303
307} 308}
308 309
309void 310void
310place_specials_in_map (maptile *map, char **layout, random_map_params *RP) 311place_specials_in_map (maptile *map, char **layout, random_map_params *RP)
311{ 312{
313 for(int i=0;i<100;++i)//D
312 switch (rmg_rndm (NUM_OF_SPECIAL_TYPES)) 314 switch (rmg_rndm (NUM_OF_SPECIAL_TYPES))
313 { 315 {
314 case SPECIAL_SUBMAP: 316 case SPECIAL_SUBMAP:
315 { 317 {
316 /* includes a special map into the random map being made. */ 318 /* includes a special map into the random map being made. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines