#include "artifact.h"
#include "avatar.h"
#include "player-status.h"
+#include "monster.h"
/*!
/* Nothing to recall */
if (!n)
{
- /* Free the "who" array */
- C_KILL(who, max_r_idx, IDX);
-
+ C_KILL(who, max_r_idx, MONRACE_IDX);
return;
}
why = 2;
- /* Select the sort method */
- ang_sort_comp = ang_sort_comp_hook;
- ang_sort_swap = ang_sort_swap_hook;
-
/* Sort the array */
- ang_sort(who, &why, n);
+ ang_sort(who, &why, n, ang_sort_comp_hook, ang_sort_swap_hook);
/* Sort by kills (and level) */
if (query == 'k')
/* Catch "escape" */
if (query != 'y')
{
- /* Free the "who" array */
- C_KILL(who, max_r_idx, IDX);
-
+ C_KILL(who, max_r_idx, MONRACE_IDX);
return;
}
/* Sort if needed */
if (why == 4)
{
- /* Select the sort method */
- ang_sort_comp = ang_sort_comp_hook;
- ang_sort_swap = ang_sort_swap_hook;
-
- /* Sort the array */
- ang_sort(who, &why, n);
+ ang_sort(who, &why, n, ang_sort_comp_hook, ang_sort_swap_hook);
}