… | |
… | |
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 | |
94 | x = RANDOM () % RP->Xsize; |
94 | x = rndm (RP->Xsize); |
95 | y = RANDOM () % RP->Ysize; |
95 | y = rndm (RP->Ysize); |
96 | freeindex = find_first_free_spot (this_monster, map, x, y); |
96 | freeindex = find_first_free_spot (this_monster, map, x, y); |
97 | if (freeindex != -1) |
97 | if (freeindex != -1) |
98 | { |
98 | { |
99 | object *new_monster = arch_to_object (this_monster->arch); |
99 | object *new_monster = arch_to_object (this_monster->arch); |
100 | |
100 | |