… | |
… | |
62 | } |
62 | } |
63 | |
63 | |
64 | |
64 | |
65 | /* place some monsters into the map. */ |
65 | /* place some monsters into the map. */ |
66 | void |
66 | void |
67 | place_monsters (maptile *map, char *monsterstyle, int difficulty, RMParms * RP) |
67 | place_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 | } |