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.5 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.7 by root, Sat Dec 30 18:45:28 2006 UTC

62} 62}
63 63
64 64
65/* place some monsters into the map. */ 65/* place some monsters into the map. */
66void 66void
67place_monsters (maptile *map, char *monsterstyle, int difficulty, RMParms * RP) 67place_monsters (maptile *map, char *monsterstyle, int difficulty, random_map_params * RP)
68{ 68{
69 char styledirname[256]; 69 char styledirname[256];
70 maptile *style_map = 0; 70 maptile *style_map = 0;
71 int failed_placements; 71 int failed_placements;
72 sint64 exp_per_sq, total_experience; 72 sint64 exp_per_sq, total_experience;
110 } 110 }
111 else 111 else
112 { 112 {
113 failed_placements++; 113 failed_placements++;
114 } 114 }
115 exp_per_sq = (sint64) (((double) 1000 * total_experience) / (MAP_WIDTH (map) * MAP_HEIGHT (map) + 1)); 115 exp_per_sq = (sint64) (((double) 1000 * total_experience) / (map->width * map->height + 1));
116 } 116 }
117} 117}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines