if (i == ESCAPE)
{
+ /* Free the "dun" array */
+ C_KILL(dun, max_d_idx, s16b);
+
screen_load();
return;
}
}
screen_load();
+ /* Free the "dun" array */
+ C_KILL(dun, max_d_idx, s16b);
+
max_depth = d_info[select_dungeon].maxdepth;
/* Limit depth in Angband */
u16b why = 0;
u16b *who;
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, u16b);
-
/* Get a character, or abort */
#ifdef JP
if (!get_com("ÃΤꤿ¤¤Ê¸»ú¤òÆþÎϤ·¤Æ²¼¤µ¤¤(µ¹æ or ^AÁ´,^U¥æ,^NÈó¥æ,^M̾Á°): ", &sym, FALSE)) return;
/* Display the result */
prt(buf, 0, 0);
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, u16b);
/* Collect matching monsters */
for (n = 0, i = 1; i < max_r_idx; i++)
}
/* Nothing to recall */
- if (!n) return;
+ if (!n)
+ {
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, u16b);
+
+ return;
+ }
/* Prompt XXX XXX XXX */
}
/* Catch "escape" */
- if (query != 'y') return;
+ if (query != 'y')
+ {
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, u16b);
+
+ return;
+ }
/* Sort if needed */
if (why == 4)
}
}
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, u16b);
+
/* Re-display the identity */
prt(buf, 0, 0);
}
return (FALSE);
}
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, u16b);
-
/* Find that character info, and describe it */
for (i = 0; ident_info[i]; ++i)
{
prt(buf, 16, 10);
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, u16b);
+
/* Collect matching monsters */
for (n = 0, i = 1; i < max_r_idx; i++)
{
bool *okay;
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, s16b);
-
- /* Allocate the "okay" array */
- C_MAKE(okay, max_a_idx, bool);
-
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
+
if (!fff) {
#ifdef JP
msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name);
return;
}
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, s16b);
+
+ /* Allocate the "okay" array */
+ C_MAKE(okay, max_a_idx, bool);
+
/* Scan the artifacts */
for (k = 0; k < max_a_idx; k++)
{
}
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
+ /* Free the "okay" array */
+ C_KILL(okay, max_a_idx, bool);
+
/* Close the file */
my_fclose(fff);
char file_name[1024];
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, s16b);
-
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
+
if (!fff) {
#ifdef JP
msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name);
return;
}
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, s16b);
+
/* Scan the monsters */
for (i = 1; i < max_r_idx; i++)
{
}
}
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
/* Close the file */
my_fclose(fff);
char file_name[1024];
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, s16b);
-
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
+
if (!fff) {
#ifdef JP
msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name);
return;
}
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, s16b);
+
/* Scan the monsters */
for (i = 1; i < max_r_idx; i++)
{
}
}
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
/* Close the file */
my_fclose(fff);
s32b Total = 0;
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, s16b);
-
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
+
if (!fff) {
#ifdef JP
msg_format("°ì»þ¥Õ¥¡¥¤¥ë %s ¤òºîÀ®¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£", file_name);
return;
}
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, s16b);
+
{
/* Monsters slain */
int kk;
#endif
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
/* Close the file */
my_fclose(fff);
pet_ctr = who[i];
teleport_to_player(pet_ctr, 100);
}
+
+ /* Free the "who" array */
+ C_KILL(who, max_m_idx, u16b);
}
o_ptr->timeout = 100+randint(100);
return;
i = inkey();
if (i == ESCAPE)
{
+ /* Free the "dun" array */
+ C_KILL(dun, max_d_idx, s16b);
+
screen_load();
return 0;
}
else bell();
}
screen_load();
+
+ /* Free the "dun" array */
+ C_KILL(dun, max_d_idx, s16b);
+
return select_dungeon;
}
char hp[80];
char exp[80];
- /* Allocate the "who" array */
- C_MAKE(who, max_r_idx, s16b);
-
/* Build the filename */
path_build(buf, 1024, ANGBAND_DIR_USER, fname);
return;
}
+ /* Allocate the "who" array */
+ C_MAKE(who, max_r_idx, s16b);
+
/* Dump the header */
#ifndef FAKE_VERSION
fprintf(fff, "\n");
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
/* Check for errors */
if (ferror(fff) || my_fclose(fff))
{
spoil_out(NULL);
}
+ /* Free the "who" array */
+ C_KILL(who, max_r_idx, s16b);
+
/* Check for errors */
if (ferror(fff) || my_fclose(fff))
{