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.4 by root, Thu Sep 14 22:34:02 2006 UTC vs.
Revision 1.6 by root, Mon Dec 25 14:43:23 2006 UTC

27 27
28/* some monsters are multisquare, and these guys require special 28/* some monsters are multisquare, and these guys require special
29 handling. */ 29 handling. */
30 30
31void 31void
32insert_multisquare_ob_in_map (object *new_obj, mapstruct *map) 32insert_multisquare_ob_in_map (object *new_obj, maptile *map)
33{ 33{
34 int x, y; 34 int x, y;
35 archetype *at; 35 archetype *at;
36 object *old_seg; 36 object *old_seg;
37 object *head; 37 object *head;
62} 62}
63 63
64 64
65/* place some monsters into the map. */ 65/* place some monsters into the map. */
66void 66void
67place_monsters (mapstruct *map, char *monsterstyle, int difficulty, RMParms * RP) 67place_monsters (maptile *map, char *monsterstyle, int difficulty, RMParms * RP)
68{ 68{
69 char styledirname[256]; 69 char styledirname[256];
70 mapstruct *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;
73 int number_monsters = 0; 73 int number_monsters = 0;
74 archetype *at; 74 archetype *at;
75 75
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