From: mogami Date: Thu, 11 Mar 2004 11:57:57 +0000 (+0000) Subject: inkey_special()自体のバグを直すので、その前に取り敢えず X-Git-Tag: v2.1.2~556 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=e19f999432e3f2a8d9eab778d60dad6fcdd5846c inkey_special()自体のバグを直すので、その前に取り敢えず 前回の変更点を戻す。 --- diff --git a/src/artifact.c b/src/artifact.c index b8f8bf5a1..eb6db9555 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -1917,7 +1917,7 @@ bool create_artifact(object_type *o_ptr, bool a_scroll) (void)screen_object(o_ptr, TRUE); - if (!get_string(ask_msg, dummy_name, sizeof dummy_name, FALSE) + if (!get_string(ask_msg, dummy_name, sizeof dummy_name) || !dummy_name[0]) { /* Cancelled */ diff --git a/src/autopick.c b/src/autopick.c index f7a1207aa..377be8dc2 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -3447,7 +3447,7 @@ static byte get_string_for_search(object_type **o_handle, cptr *search_strp) Term_gotoxy(col + pos, 0); /* Get a special key code */ - skey = inkey_special(TRUE, FALSE); + skey = inkey_special(TRUE); /* Analyze the key */ switch (skey) @@ -6254,7 +6254,7 @@ void do_cmd_edit_autopick(void) tb->old_hgt = tb->hgt; /* Get a command */ - key = inkey_special(TRUE, FALSE); + key = inkey_special(TRUE); /* Special keys */ if (key & SKEY_MASK) diff --git a/src/birth.c b/src/birth.c index 0ad197f74..eccf4f9af 100644 --- a/src/birth.c +++ b/src/birth.c @@ -5387,7 +5387,7 @@ static void edit_history(void) Term_gotoxy(x + 10, y + 12); /* Get special key code */ - skey = inkey_special(TRUE, FALSE); + skey = inkey_special(TRUE); /* Get a character code */ if (!(skey & SKEY_MASK)) c = (char)skey; diff --git a/src/bldg.c b/src/bldg.c index d8f3a5217..fed7b6db5 100644 --- a/src/bldg.c +++ b/src/bldg.c @@ -1280,7 +1280,7 @@ sprintf(tmp_str," * Use get_string() because we may need more than * the s16b value returned by get_quantity(). */ - if (get_string(tmp_str, out_val, 32, TRUE)) + if (get_string(tmp_str, out_val, 32)) { /* Strip spaces */ for (p = out_val; *p == ' '; p++); @@ -1453,9 +1453,9 @@ c_put_str(TERM_GREEN, " prt("--------------------------------", 8, 3); strcpy(out_val, ""); #ifdef JP - get_string("²¿ÈÖ¡© (0-9): ", out_val, 32, TRUE); +get_string("²¿ÈÖ¡© (0-9): ", out_val, 32); #else - get_string("Pick a number (0-9): ", out_val, 32, TRUE); + get_string("Pick a number (0-9): ", out_val, 32); #endif for (p = out_val; isspace(*p); p++); @@ -2012,7 +2012,7 @@ sprintf(tmp_str," * Use get_string() because we may need more than * the s16b value returned by get_quantity(). */ - if (get_string(tmp_str, out_val, 32, TRUE)) + if (get_string(tmp_str, out_val, 32)) { /* Strip spaces */ for (p = out_val; *p == ' '; p++); @@ -3967,10 +3967,11 @@ if (get_check(format(" /* Get the quantity for staves and wands */ #ifdef JP - charges = get_quantity(format("°ì²óʬ¡ð%d ¤Ç²¿²óʬ½¼Å¶¤·¤Þ¤¹¤«¡©", +charges = get_quantity(format("°ì²óʬ¡ð%d ¤Ç²¿²óʬ½¼Å¶¤·¤Þ¤¹¤«¡©", #else charges = get_quantity(format("Add how many charges for %d gold? ", #endif + price), MIN(p_ptr->au / price, max_charges)); /* Do nothing */ @@ -4352,12 +4353,12 @@ if (!get_com(" { all = TRUE; #ifdef JP - if (!get_string("̾Á°(±Ñ¸ì¤Î¾ì¹ç¾®Ê¸»ú¤Ç²Ä)", temp, 70, TRUE)) + if (!get_string("̾Á°(±Ñ¸ì¤Î¾ì¹ç¾®Ê¸»ú¤Ç²Ä)",temp, 70)) #else - if (!get_string("Enter name:",temp, 70, TRUE)) + if (!get_string("Enter name:",temp, 70)) #endif { - temp[0] = 0; + temp[0]=0; /* Restore */ screen_load(); diff --git a/src/cmd2.c b/src/cmd2.c index 881584340..975f6d2d8 100644 --- a/src/cmd2.c +++ b/src/cmd2.c @@ -2845,7 +2845,7 @@ void do_cmd_rest(void) strcpy(out_val, "&"); /* Ask for duration */ - if (!get_string(p, out_val, 4, TRUE)) return; + if (!get_string(p, out_val, 4)) return; /* Rest until done */ if (out_val[0] == '&') diff --git a/src/cmd3.c b/src/cmd3.c index 05489e0a1..0a7308a6e 100644 --- a/src/cmd3.c +++ b/src/cmd3.c @@ -1378,9 +1378,9 @@ void do_cmd_inscribe(void) /* Get a new inscription (possibly empty) */ #ifdef JP - if (get_string("ÌÃ: ", out_val, 80, FALSE)) + if (get_string("ÌÃ: ", out_val, 80)) #else - if (get_string("Inscription: ", out_val, 80, FALSE)) + if (get_string("Inscription: ", out_val, 80)) #endif { /* Save the inscription */ @@ -2045,12 +2045,12 @@ void do_cmd_query_symbol(void) { all = TRUE; #ifdef JP - if (!get_string("̾Á°(±Ñ¸ì¤Î¾ì¹ç¾®Ê¸»ú¤Ç²Ä)", temp, 70, FALSE)) + if (!get_string("̾Á°(±Ñ¸ì¤Î¾ì¹ç¾®Ê¸»ú¤Ç²Ä)",temp, 70)) #else - if (!get_string("Enter name:", temp, 70, FALSE)) + if (!get_string("Enter name:",temp, 70)) #endif { - temp[0] = 0; + temp[0]=0; return; } #ifdef JP diff --git a/src/cmd4.c b/src/cmd4.c index c66f731d8..7ad1b13e5 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -930,9 +930,9 @@ static void do_cmd_bunshou(void) char bunshou[80] = "\0"; #ifdef JP - if (get_string("ÆâÍÆ: ", tmp, 79, FALSE)) + if (get_string("ÆâÍÆ: ", tmp, 79)) #else - if (get_string("diary note: ", tmp, 79, FALSE)) + if (get_string("diary note: ", tmp, 79)) #endif { strcpy(bunshou, tmp); @@ -1225,9 +1225,9 @@ void do_cmd_change_name(void) { sprintf(tmp, "%s.txt", player_base); #ifdef JP - if (get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80, FALSE)) + if (get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80)) #else - if (get_string("File name: ", tmp, 80, FALSE)) + if (get_string("File name: ", tmp, 80)) #endif { @@ -1382,7 +1382,7 @@ void do_cmd_messages(int num_now) /* Get a command */ - skey = inkey_special(TRUE, FALSE); + skey = inkey_special(TRUE); /* Exit on Escape */ if (skey == ESCAPE) break; @@ -2712,9 +2712,9 @@ void do_cmd_pref(void) /* Ask for a "user pref command" */ #ifdef JP - if (!get_string("ÀßÄêÊѹ¹¥³¥Þ¥ó¥É: ", buf, 80, FALSE)) return; + if (!get_string("ÀßÄêÊѹ¹¥³¥Þ¥ó¥É: ", buf, 80)) return; #else - if (!get_string("Pref: ", buf, 80, FALSE)) return; + if (!get_string("Pref: ", buf, 80)) return; #endif @@ -3597,7 +3597,7 @@ static bool cmd_visuals_aux(int i, int *num, int max) sprintf(str, "%d", *num); - if (!get_string(format("Input new number(0-%d): ", max-1), str, 4, TRUE)) + if (!get_string(format("Input new number(0-%d): ", max-1), str, 4)) return FALSE; tmp = strtol(str, NULL, 0); @@ -4703,9 +4703,9 @@ void do_cmd_note(void) /* Input */ #ifdef JP - if (!get_string("¥á¥â: ", buf, 60, FALSE)) return; + if (!get_string("¥á¥â: ", buf, 60)) return; #else - if (!get_string("Note: ", buf, 60, FALSE)) return; + if (!get_string("Note: ", buf, 60)) return; #endif @@ -6097,9 +6097,9 @@ static void do_cmd_save_screen_html(void) char buf[1024], tmp[256] = "screen.html"; #ifdef JP - if (!get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80, FALSE)) + if (!get_string("¥Õ¥¡¥¤¥ë̾: ", tmp, 80)) #else - if (!get_string("File name: ", tmp, 80, FALSE)) + if (!get_string("File name: ", tmp, 80)) #endif return; diff --git a/src/cmd5.c b/src/cmd5.c index 30b183071..e62f049f4 100644 --- a/src/cmd5.c +++ b/src/cmd5.c @@ -2247,10 +2247,11 @@ static void do_name_pet(void) /* Get a new inscription (possibly empty) */ #ifdef JP - if (get_string("̾Á°: ", out_val, 15, FALSE)) + if (get_string("̾Á°: ", out_val, 15)) #else - if (get_string("Name: ", out_val, 15, FALSE)) + if (get_string("Name: ", out_val, 15)) #endif + { if (out_val[0]) { diff --git a/src/dungeon.c b/src/dungeon.c index 1301d0084..240987ae5 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -629,7 +629,7 @@ static void pattern_teleport(void) sprintf(tmp_val, "%d", dun_level); /* Ask for a level */ - if (!get_string(ppp, tmp_val, 10, TRUE)) return; + if (!get_string(ppp, tmp_val, 10)) return; /* Extract request */ command_arg = atoi(tmp_val); diff --git a/src/effects.c b/src/effects.c index 63f1d3b4e..284b5470a 100644 --- a/src/effects.c +++ b/src/effects.c @@ -5246,9 +5246,9 @@ get_rnd_line("death_j.txt", 0, death_message); #endif } #ifdef JP - while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024, FALSE)) ; + while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024)) ; #else - while (!get_string("Last word: ", death_message, 1024, FALSE)) ; + while (!get_string("Last word: ", death_message, 1024)) ; #endif if (death_message[0] == '\0') { diff --git a/src/externs.h b/src/externs.h index 952d72de1..81c0386f8 100644 --- a/src/externs.h +++ b/src/externs.h @@ -1274,9 +1274,9 @@ extern void prt(cptr str, int row, int col); extern void c_roff(byte attr, cptr str); extern void roff(cptr str); extern void clear_from(int row); -extern bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_trigger); +extern bool askfor_aux(char *buf, int len, bool numpad_cursor); extern bool askfor(char *buf, int len); -extern bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger); +extern bool get_string(cptr prompt, char *buf, int len); extern bool get_check(cptr prompt); extern bool get_check_strict(cptr prompt, int mode); extern bool get_com(cptr prompt, char *command, bool z_escape); @@ -1302,7 +1302,7 @@ extern size_t my_strcat(char *buf, const char *src, size_t bufsize); extern char *my_strstr(const char *haystack, const char *needle); extern char *my_strchr(const char *ptr, char ch); extern void str_tolower(char *str); -extern int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger); +extern int inkey_special(bool numpad_cursor); /* xtra1.c */ diff --git a/src/files.c b/src/files.c index c5d76d03f..cd0cab82e 100644 --- a/src/files.c +++ b/src/files.c @@ -5553,7 +5553,7 @@ prt("[ } /* Get a special key code */ - skey = inkey_special(TRUE, FALSE); + skey = inkey_special(TRUE); /* Show the help for the help */ if (skey == '?') @@ -5729,17 +5729,17 @@ strcpy(tmp, "jhelp.hlp"); char buff[1024]; char xtmp[82]; - strcpy(xtmp, ""); + strcpy (xtmp, ""); #ifdef JP - if (!get_string("¥Õ¥¡¥¤¥ë̾: ", xtmp, 80, FALSE)) + if (!get_string("¥Õ¥¡¥¤¥ë̾: ", xtmp, 80)) #else - if (!get_string("File name: ", xtmp, 80, FALSE)) + if (!get_string("File name: ", xtmp, 80)) #endif { continue; } - + /* Close it */ my_fclose(fff); @@ -6022,9 +6022,9 @@ void get_name(void) /* Prompt for a new name */ #ifdef JP - if (get_string("¥­¥ã¥é¥¯¥¿¡¼¤Î̾Á°¤òÆþÎϤ·¤Æ²¼¤µ¤¤: ", tmp, 15, FALSE)) + if (get_string("¥­¥ã¥é¥¯¥¿¡¼¤Î̾Á°¤òÆþÎϤ·¤Æ²¼¤µ¤¤: ", tmp, 15)) #else - if (get_string("Enter a name for your character: ", tmp, 15, FALSE)) + if (get_string("Enter a name for your character: ", tmp, 15)) #endif { /* Use the name */ @@ -6114,9 +6114,9 @@ prt(" char buf[1024] = ""; #ifdef JP - while (!get_string("*¾¡Íø*¥á¥Ã¥»¡¼¥¸: ", buf, sizeof buf, FALSE)) ; + while (!get_string("*¾¡Íø*¥á¥Ã¥»¡¼¥¸: ", buf, sizeof buf)) ; #else - while (!get_string("*Winning* message: ", buf, sizeof buf, FALSE)) ; + while (!get_string("*Winning* message: ", buf, sizeof buf)) ; #endif if (buf[0]) diff --git a/src/object2.c b/src/object2.c index bf2460c27..98d1be496 100644 --- a/src/object2.c +++ b/src/object2.c @@ -8058,7 +8058,7 @@ static void add_essence(int mode) #endif strcpy(tmp_val, "1"); - if (!get_string(tmp, tmp_val, 1, TRUE)) return; + if (!get_string(tmp, tmp_val, 1)) return; pval = atoi(tmp_val); if (pval > limit) pval = limit; else if (pval < 1) pval = 1; @@ -8089,9 +8089,9 @@ static void add_essence(int mode) strcpy(tmp_val, "1"); #ifdef JP - if (!get_string(format("¤¤¤¯¤ÄÉղä·¤Þ¤¹¤«¡© (1-%d):", p_ptr->lev/7+3), tmp_val, 2, TRUE)) return; + if (!get_string(format("¤¤¤¯¤ÄÉղä·¤Þ¤¹¤«¡© (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return; #else - if (!get_string(format("Enchant how many? (1-%d):", p_ptr->lev/7+3), tmp_val, 2, TRUE)) return; + if (!get_string(format("Enchant how many? (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return; #endif val = atoi(tmp_val); if (val > p_ptr->lev/7+3) val = p_ptr->lev/7+3; diff --git a/src/spells3.c b/src/spells3.c index f76cc7b08..ebc603394 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -1012,7 +1012,7 @@ sprintf(ppp, " sprintf(tmp_val, "%d", MAX(dun_level, 1)); /* Ask for a level */ - if (get_string(ppp, tmp_val, 10, TRUE)) + if (get_string(ppp, tmp_val, 10)) { /* Extract request */ dummy = atoi(tmp_val); @@ -1032,12 +1032,13 @@ sprintf(ppp, " #else do_cmd_write_nikki(NIKKI_TRUMP, select_dungeon, "using a scroll of reset recall"); #endif - /* Accept request */ + /* Accept request */ #ifdef JP - msg_format("%s¤Îµ¢´Ô¥ì¥Ù¥ë¤ò %d ³¬¤Ë¥»¥Ã¥È¡£", d_name+d_info[select_dungeon].name, dummy, dummy * 50); +msg_format("%s¤Îµ¢´Ô¥ì¥Ù¥ë¤ò %d ³¬¤Ë¥»¥Ã¥È¡£", d_name+d_info[select_dungeon].name, dummy, dummy * 50); #else msg_format("Recall depth set to level %d (%d').", dummy, dummy * 50); #endif + } else { diff --git a/src/store.c b/src/store.c index 3f813028e..429b96239 100644 --- a/src/store.c +++ b/src/store.c @@ -2605,7 +2605,7 @@ static int get_haggle(cptr pmt, s32b *poffer, s32b price, int final) * Ask the user for a response. * Don't allow to use numpad as cursor key. */ - res = askfor_aux(out_val, 32, FALSE, FALSE); + res = askfor_aux(out_val, 32, FALSE); /* Clear prompt */ prt("", 0, 0); diff --git a/src/util.c b/src/util.c index 28c3ab4e5..b6ad3a186 100644 --- a/src/util.c +++ b/src/util.c @@ -3196,7 +3196,7 @@ void clear_from(int row) * ESCAPE clears the buffer and the window and returns FALSE. * RETURN accepts the current buffer contents and returns TRUE. */ -bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_trigger) +bool askfor_aux(char *buf, int len, bool numpad_cursor) { int y, x; int pos = 0; @@ -3237,7 +3237,7 @@ bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_t Term_gotoxy(x + pos, y); /* Get a special key code */ - skey = inkey_special(numpad_cursor, allow_ascii_macro_trigger); + skey = inkey_special(numpad_cursor); /* Analyze the key */ switch (skey) @@ -3445,7 +3445,7 @@ bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_t */ bool askfor(char *buf, int len) { - return askfor_aux(buf, len, TRUE, FALSE); + return askfor_aux(buf, len, TRUE); } @@ -3459,7 +3459,7 @@ bool askfor(char *buf, int len) * * We clear the input, and return FALSE, on "ESCAPE". */ -bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger) +bool get_string(cptr prompt, char *buf, int len) { bool res; @@ -3470,7 +3470,7 @@ bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger) prt(prompt, 0, 0); /* Ask the user for a string */ - res = askfor_aux(buf, len, TRUE, allow_ascii_macro_trigger); + res = askfor(buf, len); /* Clear prompt */ prt("", 0, 0); @@ -3713,7 +3713,7 @@ s16b get_quantity(cptr prompt, int max) * Ask for a quantity * Don't allow to use numpad as cursor key. */ - res = askfor_aux(buf, 6, FALSE, TRUE); + res = askfor_aux(buf, 6, FALSE); /* Clear prompt */ prt("", 0, 0); @@ -5356,7 +5356,7 @@ void str_tolower(char *str) * This function is a Mega-Hack and depend on pref-xxx.prf's. * Currently works on Linux(UNIX), Windows, and Macintosh only. */ -int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger) +int inkey_special(bool numpad_cursor) { static const struct { cptr keyname; @@ -5418,7 +5418,7 @@ int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger) /* * Hack -- Ignore macro defined on ASCII characters. */ - if ((trig_len == 1) && parse_macro && !allow_ascii_macro_trigger) + if (trig_len == 1 && parse_macro) { char c = inkey_macro_trigger_string[0]; diff --git a/src/wizard2.c b/src/wizard2.c index f8c7b9312..627b5af25 100644 --- a/src/wizard2.c +++ b/src/wizard2.c @@ -366,7 +366,7 @@ static void do_cmd_wiz_change_aux(void) sprintf(tmp_val, "%d", p_ptr->stat_max[i]); /* Query */ - if (!get_string(ppp, tmp_val, 3, TRUE)) return; + if (!get_string(ppp, tmp_val, 3)) return; /* Extract */ tmp_int = atoi(tmp_val); @@ -385,9 +385,9 @@ static void do_cmd_wiz_change_aux(void) /* Query */ #ifdef JP - if (!get_string("½ÏÎýÅÙ: ", tmp_val, 9, TRUE)) return; + if (!get_string("½ÏÎýÅÙ: ", tmp_val, 9)) return; #else - if (!get_string("Proficiency: ", tmp_val, 9, TRUE)) return; + if (!get_string("Proficiency: ", tmp_val, 9)) return; #endif /* Extract */ @@ -421,7 +421,7 @@ static void do_cmd_wiz_change_aux(void) sprintf(tmp_val, "%ld", (long)(p_ptr->au)); /* Query */ - if (!get_string("Gold: ", tmp_val, 9, TRUE)) return; + if (!get_string("Gold: ", tmp_val, 9)) return; /* Extract */ tmp_long = atol(tmp_val); @@ -437,7 +437,7 @@ static void do_cmd_wiz_change_aux(void) sprintf(tmp_val, "%ld", (long)(p_ptr->max_exp)); /* Query */ - if (!get_string("Experience: ", tmp_val, 9, TRUE)) return; + if (!get_string("Experience: ", tmp_val, 9)) return; /* Extract */ tmp_long = atol(tmp_val); @@ -819,25 +819,25 @@ static void wiz_tweak_item(object_type *o_ptr) p = "Enter new 'pval' setting: "; sprintf(tmp_val, "%d", o_ptr->pval); - if (!get_string(p, tmp_val, 5, TRUE)) return; + if (!get_string(p, tmp_val, 5)) return; o_ptr->pval = atoi(tmp_val); wiz_display_item(o_ptr); p = "Enter new 'to_a' setting: "; sprintf(tmp_val, "%d", o_ptr->to_a); - if (!get_string(p, tmp_val, 5, TRUE)) return; + if (!get_string(p, tmp_val, 5)) return; o_ptr->to_a = atoi(tmp_val); wiz_display_item(o_ptr); p = "Enter new 'to_h' setting: "; sprintf(tmp_val, "%d", o_ptr->to_h); - if (!get_string(p, tmp_val, 5, TRUE)) return; + if (!get_string(p, tmp_val, 5)) return; o_ptr->to_h = atoi(tmp_val); wiz_display_item(o_ptr); p = "Enter new 'to_d' setting: "; sprintf(tmp_val, "%d", o_ptr->to_d); - if (!get_string(p, tmp_val, 5, TRUE)) return; + if (!get_string(p, tmp_val, 5)) return; o_ptr->to_d = atoi(tmp_val); wiz_display_item(o_ptr); } @@ -1040,7 +1040,7 @@ static void wiz_statistics(object_type *o_ptr) } sprintf(tmp_val, "%ld", test_roll); - if (get_string(p, tmp_val, 10, TRUE)) test_roll = atol(tmp_val); + if (get_string(p, tmp_val, 10)) test_roll = atol(tmp_val); test_roll = MAX(1, test_roll); /* Let us know what we are doing */ @@ -1163,7 +1163,7 @@ static void wiz_quantity_item(object_type *o_ptr) sprintf(tmp_val, "%d", o_ptr->number); /* Query */ - if (get_string("Quantity: ", tmp_val, 2, TRUE)) + if (get_string("Quantity: ", tmp_val, 2)) { /* Extract */ tmp_int = atoi(tmp_val); @@ -1492,7 +1492,7 @@ static void do_cmd_wiz_jump(void) sprintf(tmp_val, "%d", dungeon_type); /* Ask for a level */ - if (!get_string(ppp, tmp_val, 2, TRUE)) return; + if (!get_string(ppp, tmp_val, 2)) return; tmp_dungeon_type = atoi(tmp_val); if (!d_info[tmp_dungeon_type].maxdepth || (tmp_dungeon_type > max_d_idx)) tmp_dungeon_type = DUNGEON_ANGBAND; @@ -1504,7 +1504,7 @@ static void do_cmd_wiz_jump(void) sprintf(tmp_val, "%d", dun_level); /* Ask for a level */ - if (!get_string(ppp, tmp_val, 10, TRUE)) return; + if (!get_string(ppp, tmp_val, 10)) return; /* Extract request */ command_arg = atoi(tmp_val); @@ -1695,9 +1695,9 @@ static void do_cmd_wiz_create_feature(void) /* Query */ #ifdef JP - if (!get_string("ÃÏ·Á: ", tmp_val, 3, TRUE)) return; + if (!get_string("ÃÏ·Á: ", tmp_val, 3)) return; #else - if (!get_string("Feature: ", tmp_val, 3, TRUE)) return; + if (!get_string("Feature: ", tmp_val, 3)) return; #endif /* Extract */ @@ -1710,9 +1710,9 @@ static void do_cmd_wiz_create_feature(void) /* Query */ #ifdef JP - if (!get_string("ÃÏ·Á (mimic): ", tmp_val, 3, TRUE)) return; + if (!get_string("ÃÏ·Á (mimic): ", tmp_val, 3)) return; #else - if (!get_string("Feature (mimic): ", tmp_val, 3, TRUE)) return; + if (!get_string("Feature (mimic): ", tmp_val, 3)) return; #endif /* Extract */