*/
static void do_cmd_wiz_named(int r_idx)
{
- int i, x, y;
-
- /* Paranoia */
- /* if (!r_idx) return; */
-
- /* Prevent illegal monsters */
- if (r_idx >= max_r_idx) return;
-
- /* Try 10 times */
- for (i = 0; i < 10; i++)
- {
- int d = 1;
-
- /* Pick a location */
- scatter(&y, &x, py, px, d, 0);
-
- /* Require empty grids */
- if (!cave_empty_bold(y, x)) continue;
-
- /* Place it (allow groups) */
- if (place_monster_aux(0, y, x, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP))) break;
- }
+ (void)summon_named_creature(0, py, px, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
}
*/
static void do_cmd_wiz_named_friendly(int r_idx)
{
- (void) summon_named_creature(0, py, px, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP | PM_FORCE_PET));
+ (void)summon_named_creature(0, py, px, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP | PM_FORCE_PET));
}