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

Comparing deliantra/server/random_maps/monster.C (file contents):
Revision 1.15 by root, Sat Jan 27 12:45:04 2007 UTC vs.
Revision 1.16 by root, Sat Feb 17 23:32:11 2007 UTC

83 total_experience = 0; 83 total_experience = 0;
84 failed_placements = 0; 84 failed_placements = 0;
85 exp_per_sq = 0; 85 exp_per_sq = 0;
86 while (exp_per_sq <= level_exp (difficulty, 1.0) && failed_placements < 100 && number_monsters < (RP->Xsize * RP->Ysize) / 8) 86 while (exp_per_sq <= level_exp (difficulty, 1.0) && failed_placements < 100 && number_monsters < (RP->Xsize * RP->Ysize) / 8)
87 { 87 {
88 object *this_monster = pick_random_object (style_map); 88 object *this_monster = style_map->pick_random_object ();
89 int x, y, freeindex; 89 int x, y, freeindex;
90 90
91 if (this_monster == NULL) 91 if (this_monster == NULL)
92 return; /* no monster?? */ 92 return; /* no monster?? */
93 93

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines