• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisione19f999432e3f2a8d9eab778d60dad6fcdd5846c (tree)
Time2004-03-11 20:57:57
Authormogami <mogami@0568...>
Commitermogami

Log Message

inkey_special()自体のバグを直すので、その前に取り敢えず
前回の変更点を戻す。

Change Summary

Incremental Difference

--- a/src/artifact.c
+++ b/src/artifact.c
@@ -1917,7 +1917,7 @@ bool create_artifact(object_type *o_ptr, bool a_scroll)
19171917
19181918 (void)screen_object(o_ptr, TRUE);
19191919
1920- if (!get_string(ask_msg, dummy_name, sizeof dummy_name, FALSE)
1920+ if (!get_string(ask_msg, dummy_name, sizeof dummy_name)
19211921 || !dummy_name[0])
19221922 {
19231923 /* Cancelled */
--- 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)
34473447 Term_gotoxy(col + pos, 0);
34483448
34493449 /* Get a special key code */
3450- skey = inkey_special(TRUE, FALSE);
3450+ skey = inkey_special(TRUE);
34513451
34523452 /* Analyze the key */
34533453 switch (skey)
@@ -6254,7 +6254,7 @@ void do_cmd_edit_autopick(void)
62546254 tb->old_hgt = tb->hgt;
62556255
62566256 /* Get a command */
6257- key = inkey_special(TRUE, FALSE);
6257+ key = inkey_special(TRUE);
62586258
62596259 /* Special keys */
62606260 if (key & SKEY_MASK)
--- a/src/birth.c
+++ b/src/birth.c
@@ -5387,7 +5387,7 @@ static void edit_history(void)
53875387 Term_gotoxy(x + 10, y + 12);
53885388
53895389 /* Get special key code */
5390- skey = inkey_special(TRUE, FALSE);
5390+ skey = inkey_special(TRUE);
53915391
53925392 /* Get a character code */
53935393 if (!(skey & SKEY_MASK)) c = (char)skey;
--- a/src/bldg.c
+++ b/src/bldg.c
@@ -1280,7 +1280,7 @@ sprintf(tmp_str,"
12801280 * Use get_string() because we may need more than
12811281 * the s16b value returned by get_quantity().
12821282 */
1283- if (get_string(tmp_str, out_val, 32, TRUE))
1283+ if (get_string(tmp_str, out_val, 32))
12841284 {
12851285 /* Strip spaces */
12861286 for (p = out_val; *p == ' '; p++);
@@ -1453,9 +1453,9 @@ c_put_str(TERM_GREEN, "
14531453 prt("--------------------------------", 8, 3);
14541454 strcpy(out_val, "");
14551455 #ifdef JP
1456- get_string("何番? (0-9): ", out_val, 32, TRUE);
1456+get_string("何番? (0-9): ", out_val, 32);
14571457 #else
1458- get_string("Pick a number (0-9): ", out_val, 32, TRUE);
1458+ get_string("Pick a number (0-9): ", out_val, 32);
14591459 #endif
14601460
14611461 for (p = out_val; isspace(*p); p++);
@@ -2012,7 +2012,7 @@ sprintf(tmp_str,"
20122012 * Use get_string() because we may need more than
20132013 * the s16b value returned by get_quantity().
20142014 */
2015- if (get_string(tmp_str, out_val, 32, TRUE))
2015+ if (get_string(tmp_str, out_val, 32))
20162016 {
20172017 /* Strip spaces */
20182018 for (p = out_val; *p == ' '; p++);
@@ -3967,10 +3967,11 @@ if (get_check(format("
39673967
39683968 /* Get the quantity for staves and wands */
39693969 #ifdef JP
3970- charges = get_quantity(format("一回分$%d で何回分充填しますか?",
3970+charges = get_quantity(format("一回分$%d で何回分充填しますか?",
39713971 #else
39723972 charges = get_quantity(format("Add how many charges for %d gold? ",
39733973 #endif
3974+
39743975 price), MIN(p_ptr->au / price, max_charges));
39753976
39763977 /* Do nothing */
@@ -4352,12 +4353,12 @@ if (!get_com("
43524353 {
43534354 all = TRUE;
43544355 #ifdef JP
4355- if (!get_string("名前(英語の場合小文字で可)", temp, 70, TRUE))
4356+ if (!get_string("名前(英語の場合小文字で可)",temp, 70))
43564357 #else
4357- if (!get_string("Enter name:",temp, 70, TRUE))
4358+ if (!get_string("Enter name:",temp, 70))
43584359 #endif
43594360 {
4360- temp[0] = 0;
4361+ temp[0]=0;
43614362
43624363 /* Restore */
43634364 screen_load();
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -2845,7 +2845,7 @@ void do_cmd_rest(void)
28452845 strcpy(out_val, "&");
28462846
28472847 /* Ask for duration */
2848- if (!get_string(p, out_val, 4, TRUE)) return;
2848+ if (!get_string(p, out_val, 4)) return;
28492849
28502850 /* Rest until done */
28512851 if (out_val[0] == '&')
--- a/src/cmd3.c
+++ b/src/cmd3.c
@@ -1378,9 +1378,9 @@ void do_cmd_inscribe(void)
13781378
13791379 /* Get a new inscription (possibly empty) */
13801380 #ifdef JP
1381- if (get_string("銘: ", out_val, 80, FALSE))
1381+ if (get_string("銘: ", out_val, 80))
13821382 #else
1383- if (get_string("Inscription: ", out_val, 80, FALSE))
1383+ if (get_string("Inscription: ", out_val, 80))
13841384 #endif
13851385 {
13861386 /* Save the inscription */
@@ -2045,12 +2045,12 @@ void do_cmd_query_symbol(void)
20452045 {
20462046 all = TRUE;
20472047 #ifdef JP
2048- if (!get_string("名前(英語の場合小文字で可)", temp, 70, FALSE))
2048+ if (!get_string("名前(英語の場合小文字で可)",temp, 70))
20492049 #else
2050- if (!get_string("Enter name:", temp, 70, FALSE))
2050+ if (!get_string("Enter name:",temp, 70))
20512051 #endif
20522052 {
2053- temp[0] = 0;
2053+ temp[0]=0;
20542054 return;
20552055 }
20562056 #ifdef JP
--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -930,9 +930,9 @@ static void do_cmd_bunshou(void)
930930 char bunshou[80] = "\0";
931931
932932 #ifdef JP
933- if (get_string("内容: ", tmp, 79, FALSE))
933+ if (get_string("内容: ", tmp, 79))
934934 #else
935- if (get_string("diary note: ", tmp, 79, FALSE))
935+ if (get_string("diary note: ", tmp, 79))
936936 #endif
937937 {
938938 strcpy(bunshou, tmp);
@@ -1225,9 +1225,9 @@ void do_cmd_change_name(void)
12251225 {
12261226 sprintf(tmp, "%s.txt", player_base);
12271227 #ifdef JP
1228- if (get_string("ファイル名: ", tmp, 80, FALSE))
1228+ if (get_string("ファイル名: ", tmp, 80))
12291229 #else
1230- if (get_string("File name: ", tmp, 80, FALSE))
1230+ if (get_string("File name: ", tmp, 80))
12311231 #endif
12321232
12331233 {
@@ -1382,7 +1382,7 @@ void do_cmd_messages(int num_now)
13821382
13831383
13841384 /* Get a command */
1385- skey = inkey_special(TRUE, FALSE);
1385+ skey = inkey_special(TRUE);
13861386
13871387 /* Exit on Escape */
13881388 if (skey == ESCAPE) break;
@@ -2712,9 +2712,9 @@ void do_cmd_pref(void)
27122712
27132713 /* Ask for a "user pref command" */
27142714 #ifdef JP
2715- if (!get_string("設定変更コマンド: ", buf, 80, FALSE)) return;
2715+ if (!get_string("設定変更コマンド: ", buf, 80)) return;
27162716 #else
2717- if (!get_string("Pref: ", buf, 80, FALSE)) return;
2717+ if (!get_string("Pref: ", buf, 80)) return;
27182718 #endif
27192719
27202720
@@ -3597,7 +3597,7 @@ static bool cmd_visuals_aux(int i, int *num, int max)
35973597
35983598 sprintf(str, "%d", *num);
35993599
3600- if (!get_string(format("Input new number(0-%d): ", max-1), str, 4, TRUE))
3600+ if (!get_string(format("Input new number(0-%d): ", max-1), str, 4))
36013601 return FALSE;
36023602
36033603 tmp = strtol(str, NULL, 0);
@@ -4703,9 +4703,9 @@ void do_cmd_note(void)
47034703
47044704 /* Input */
47054705 #ifdef JP
4706- if (!get_string("メモ: ", buf, 60, FALSE)) return;
4706+ if (!get_string("メモ: ", buf, 60)) return;
47074707 #else
4708- if (!get_string("Note: ", buf, 60, FALSE)) return;
4708+ if (!get_string("Note: ", buf, 60)) return;
47094709 #endif
47104710
47114711
@@ -6097,9 +6097,9 @@ static void do_cmd_save_screen_html(void)
60976097 char buf[1024], tmp[256] = "screen.html";
60986098
60996099 #ifdef JP
6100- if (!get_string("ファイル名: ", tmp, 80, FALSE))
6100+ if (!get_string("ファイル名: ", tmp, 80))
61016101 #else
6102- if (!get_string("File name: ", tmp, 80, FALSE))
6102+ if (!get_string("File name: ", tmp, 80))
61036103 #endif
61046104 return;
61056105
--- a/src/cmd5.c
+++ b/src/cmd5.c
@@ -2247,10 +2247,11 @@ static void do_name_pet(void)
22472247
22482248 /* Get a new inscription (possibly empty) */
22492249 #ifdef JP
2250- if (get_string("名前: ", out_val, 15, FALSE))
2250+ if (get_string("名前: ", out_val, 15))
22512251 #else
2252- if (get_string("Name: ", out_val, 15, FALSE))
2252+ if (get_string("Name: ", out_val, 15))
22532253 #endif
2254+
22542255 {
22552256 if (out_val[0])
22562257 {
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -629,7 +629,7 @@ static void pattern_teleport(void)
629629 sprintf(tmp_val, "%d", dun_level);
630630
631631 /* Ask for a level */
632- if (!get_string(ppp, tmp_val, 10, TRUE)) return;
632+ if (!get_string(ppp, tmp_val, 10)) return;
633633
634634 /* Extract request */
635635 command_arg = atoi(tmp_val);
--- a/src/effects.c
+++ b/src/effects.c
@@ -5246,9 +5246,9 @@ get_rnd_line("death_j.txt", 0, death_message);
52465246 #endif
52475247 }
52485248 #ifdef JP
5249- while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "辞世の句: " : "断末魔の叫び: ", death_message, 1024, FALSE)) ;
5249+ while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "辞世の句: " : "断末魔の叫び: ", death_message, 1024)) ;
52505250 #else
5251- while (!get_string("Last word: ", death_message, 1024, FALSE)) ;
5251+ while (!get_string("Last word: ", death_message, 1024)) ;
52525252 #endif
52535253 if (death_message[0] == '\0')
52545254 {
--- a/src/externs.h
+++ b/src/externs.h
@@ -1274,9 +1274,9 @@ extern void prt(cptr str, int row, int col);
12741274 extern void c_roff(byte attr, cptr str);
12751275 extern void roff(cptr str);
12761276 extern void clear_from(int row);
1277-extern bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_trigger);
1277+extern bool askfor_aux(char *buf, int len, bool numpad_cursor);
12781278 extern bool askfor(char *buf, int len);
1279-extern bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger);
1279+extern bool get_string(cptr prompt, char *buf, int len);
12801280 extern bool get_check(cptr prompt);
12811281 extern bool get_check_strict(cptr prompt, int mode);
12821282 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);
13021302 extern char *my_strstr(const char *haystack, const char *needle);
13031303 extern char *my_strchr(const char *ptr, char ch);
13041304 extern void str_tolower(char *str);
1305-extern int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger);
1305+extern int inkey_special(bool numpad_cursor);
13061306
13071307
13081308 /* xtra1.c */
--- a/src/files.c
+++ b/src/files.c
@@ -5553,7 +5553,7 @@ prt("[
55535553 }
55545554
55555555 /* Get a special key code */
5556- skey = inkey_special(TRUE, FALSE);
5556+ skey = inkey_special(TRUE);
55575557
55585558 /* Show the help for the help */
55595559 if (skey == '?')
@@ -5729,17 +5729,17 @@ strcpy(tmp, "jhelp.hlp");
57295729 char buff[1024];
57305730 char xtmp[82];
57315731
5732- strcpy(xtmp, "");
5732+ strcpy (xtmp, "");
57335733
57345734 #ifdef JP
5735- if (!get_string("ファイル名: ", xtmp, 80, FALSE))
5735+ if (!get_string("ファイル名: ", xtmp, 80))
57365736 #else
5737- if (!get_string("File name: ", xtmp, 80, FALSE))
5737+ if (!get_string("File name: ", xtmp, 80))
57385738 #endif
57395739 {
57405740 continue;
57415741 }
5742-
5742+
57435743 /* Close it */
57445744 my_fclose(fff);
57455745
@@ -6022,9 +6022,9 @@ void get_name(void)
60226022
60236023 /* Prompt for a new name */
60246024 #ifdef JP
6025- if (get_string("キャラクターの名前を入力して下さい: ", tmp, 15, FALSE))
6025+ if (get_string("キャラクターの名前を入力して下さい: ", tmp, 15))
60266026 #else
6027- if (get_string("Enter a name for your character: ", tmp, 15, FALSE))
6027+ if (get_string("Enter a name for your character: ", tmp, 15))
60286028 #endif
60296029 {
60306030 /* Use the name */
@@ -6114,9 +6114,9 @@ prt("
61146114 char buf[1024] = "";
61156115
61166116 #ifdef JP
6117- while (!get_string("*勝利*メッセージ: ", buf, sizeof buf, FALSE)) ;
6117+ while (!get_string("*勝利*メッセージ: ", buf, sizeof buf)) ;
61186118 #else
6119- while (!get_string("*Winning* message: ", buf, sizeof buf, FALSE)) ;
6119+ while (!get_string("*Winning* message: ", buf, sizeof buf)) ;
61206120 #endif
61216121
61226122 if (buf[0])
--- a/src/object2.c
+++ b/src/object2.c
@@ -8058,7 +8058,7 @@ static void add_essence(int mode)
80588058 #endif
80598059 strcpy(tmp_val, "1");
80608060
8061- if (!get_string(tmp, tmp_val, 1, TRUE)) return;
8061+ if (!get_string(tmp, tmp_val, 1)) return;
80628062 pval = atoi(tmp_val);
80638063 if (pval > limit) pval = limit;
80648064 else if (pval < 1) pval = 1;
@@ -8089,9 +8089,9 @@ static void add_essence(int mode)
80898089
80908090 strcpy(tmp_val, "1");
80918091 #ifdef JP
8092- if (!get_string(format("いくつ付加しますか? (1-%d):", p_ptr->lev/7+3), tmp_val, 2, TRUE)) return;
8092+ if (!get_string(format("いくつ付加しますか? (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return;
80938093 #else
8094- if (!get_string(format("Enchant how many? (1-%d):", p_ptr->lev/7+3), tmp_val, 2, TRUE)) return;
8094+ if (!get_string(format("Enchant how many? (1-%d):", p_ptr->lev/7+3), tmp_val, 2)) return;
80958095 #endif
80968096 val = atoi(tmp_val);
80978097 if (val > p_ptr->lev/7+3) val = p_ptr->lev/7+3;
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -1012,7 +1012,7 @@ sprintf(ppp, "
10121012 sprintf(tmp_val, "%d", MAX(dun_level, 1));
10131013
10141014 /* Ask for a level */
1015- if (get_string(ppp, tmp_val, 10, TRUE))
1015+ if (get_string(ppp, tmp_val, 10))
10161016 {
10171017 /* Extract request */
10181018 dummy = atoi(tmp_val);
@@ -1032,12 +1032,13 @@ sprintf(ppp, "
10321032 #else
10331033 do_cmd_write_nikki(NIKKI_TRUMP, select_dungeon, "using a scroll of reset recall");
10341034 #endif
1035- /* Accept request */
1035+ /* Accept request */
10361036 #ifdef JP
1037- msg_format("%sの帰還レベルを %d 階にセット。", d_name+d_info[select_dungeon].name, dummy, dummy * 50);
1037+msg_format("%sの帰還レベルを %d 階にセット。", d_name+d_info[select_dungeon].name, dummy, dummy * 50);
10381038 #else
10391039 msg_format("Recall depth set to level %d (%d').", dummy, dummy * 50);
10401040 #endif
1041+
10411042 }
10421043 else
10431044 {
--- a/src/store.c
+++ b/src/store.c
@@ -2605,7 +2605,7 @@ static int get_haggle(cptr pmt, s32b *poffer, s32b price, int final)
26052605 * Ask the user for a response.
26062606 * Don't allow to use numpad as cursor key.
26072607 */
2608- res = askfor_aux(out_val, 32, FALSE, FALSE);
2608+ res = askfor_aux(out_val, 32, FALSE);
26092609
26102610 /* Clear prompt */
26112611 prt("", 0, 0);
--- a/src/util.c
+++ b/src/util.c
@@ -3196,7 +3196,7 @@ void clear_from(int row)
31963196 * ESCAPE clears the buffer and the window and returns FALSE.
31973197 * RETURN accepts the current buffer contents and returns TRUE.
31983198 */
3199-bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_trigger)
3199+bool askfor_aux(char *buf, int len, bool numpad_cursor)
32003200 {
32013201 int y, x;
32023202 int pos = 0;
@@ -3237,7 +3237,7 @@ bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_t
32373237 Term_gotoxy(x + pos, y);
32383238
32393239 /* Get a special key code */
3240- skey = inkey_special(numpad_cursor, allow_ascii_macro_trigger);
3240+ skey = inkey_special(numpad_cursor);
32413241
32423242 /* Analyze the key */
32433243 switch (skey)
@@ -3445,7 +3445,7 @@ bool askfor_aux(char *buf, int len, bool numpad_cursor, bool allow_ascii_macro_t
34453445 */
34463446 bool askfor(char *buf, int len)
34473447 {
3448- return askfor_aux(buf, len, TRUE, FALSE);
3448+ return askfor_aux(buf, len, TRUE);
34493449 }
34503450
34513451
@@ -3459,7 +3459,7 @@ bool askfor(char *buf, int len)
34593459 *
34603460 * We clear the input, and return FALSE, on "ESCAPE".
34613461 */
3462-bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger)
3462+bool get_string(cptr prompt, char *buf, int len)
34633463 {
34643464 bool res;
34653465
@@ -3470,7 +3470,7 @@ bool get_string(cptr prompt, char *buf, int len, bool allow_ascii_macro_trigger)
34703470 prt(prompt, 0, 0);
34713471
34723472 /* Ask the user for a string */
3473- res = askfor_aux(buf, len, TRUE, allow_ascii_macro_trigger);
3473+ res = askfor(buf, len);
34743474
34753475 /* Clear prompt */
34763476 prt("", 0, 0);
@@ -3713,7 +3713,7 @@ s16b get_quantity(cptr prompt, int max)
37133713 * Ask for a quantity
37143714 * Don't allow to use numpad as cursor key.
37153715 */
3716- res = askfor_aux(buf, 6, FALSE, TRUE);
3716+ res = askfor_aux(buf, 6, FALSE);
37173717
37183718 /* Clear prompt */
37193719 prt("", 0, 0);
@@ -5356,7 +5356,7 @@ void str_tolower(char *str)
53565356 * This function is a Mega-Hack and depend on pref-xxx.prf's.
53575357 * Currently works on Linux(UNIX), Windows, and Macintosh only.
53585358 */
5359-int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger)
5359+int inkey_special(bool numpad_cursor)
53605360 {
53615361 static const struct {
53625362 cptr keyname;
@@ -5418,7 +5418,7 @@ int inkey_special(bool numpad_cursor, bool allow_ascii_macro_trigger)
54185418 /*
54195419 * Hack -- Ignore macro defined on ASCII characters.
54205420 */
5421- if ((trig_len == 1) && parse_macro && !allow_ascii_macro_trigger)
5421+ if (trig_len == 1 && parse_macro)
54225422 {
54235423 char c = inkey_macro_trigger_string[0];
54245424
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -366,7 +366,7 @@ static void do_cmd_wiz_change_aux(void)
366366 sprintf(tmp_val, "%d", p_ptr->stat_max[i]);
367367
368368 /* Query */
369- if (!get_string(ppp, tmp_val, 3, TRUE)) return;
369+ if (!get_string(ppp, tmp_val, 3)) return;
370370
371371 /* Extract */
372372 tmp_int = atoi(tmp_val);
@@ -385,9 +385,9 @@ static void do_cmd_wiz_change_aux(void)
385385
386386 /* Query */
387387 #ifdef JP
388- if (!get_string("熟練度: ", tmp_val, 9, TRUE)) return;
388+ if (!get_string("熟練度: ", tmp_val, 9)) return;
389389 #else
390- if (!get_string("Proficiency: ", tmp_val, 9, TRUE)) return;
390+ if (!get_string("Proficiency: ", tmp_val, 9)) return;
391391 #endif
392392
393393 /* Extract */
@@ -421,7 +421,7 @@ static void do_cmd_wiz_change_aux(void)
421421 sprintf(tmp_val, "%ld", (long)(p_ptr->au));
422422
423423 /* Query */
424- if (!get_string("Gold: ", tmp_val, 9, TRUE)) return;
424+ if (!get_string("Gold: ", tmp_val, 9)) return;
425425
426426 /* Extract */
427427 tmp_long = atol(tmp_val);
@@ -437,7 +437,7 @@ static void do_cmd_wiz_change_aux(void)
437437 sprintf(tmp_val, "%ld", (long)(p_ptr->max_exp));
438438
439439 /* Query */
440- if (!get_string("Experience: ", tmp_val, 9, TRUE)) return;
440+ if (!get_string("Experience: ", tmp_val, 9)) return;
441441
442442 /* Extract */
443443 tmp_long = atol(tmp_val);
@@ -819,25 +819,25 @@ static void wiz_tweak_item(object_type *o_ptr)
819819
820820 p = "Enter new 'pval' setting: ";
821821 sprintf(tmp_val, "%d", o_ptr->pval);
822- if (!get_string(p, tmp_val, 5, TRUE)) return;
822+ if (!get_string(p, tmp_val, 5)) return;
823823 o_ptr->pval = atoi(tmp_val);
824824 wiz_display_item(o_ptr);
825825
826826 p = "Enter new 'to_a' setting: ";
827827 sprintf(tmp_val, "%d", o_ptr->to_a);
828- if (!get_string(p, tmp_val, 5, TRUE)) return;
828+ if (!get_string(p, tmp_val, 5)) return;
829829 o_ptr->to_a = atoi(tmp_val);
830830 wiz_display_item(o_ptr);
831831
832832 p = "Enter new 'to_h' setting: ";
833833 sprintf(tmp_val, "%d", o_ptr->to_h);
834- if (!get_string(p, tmp_val, 5, TRUE)) return;
834+ if (!get_string(p, tmp_val, 5)) return;
835835 o_ptr->to_h = atoi(tmp_val);
836836 wiz_display_item(o_ptr);
837837
838838 p = "Enter new 'to_d' setting: ";
839839 sprintf(tmp_val, "%d", o_ptr->to_d);
840- if (!get_string(p, tmp_val, 5, TRUE)) return;
840+ if (!get_string(p, tmp_val, 5)) return;
841841 o_ptr->to_d = atoi(tmp_val);
842842 wiz_display_item(o_ptr);
843843 }
@@ -1040,7 +1040,7 @@ static void wiz_statistics(object_type *o_ptr)
10401040 }
10411041
10421042 sprintf(tmp_val, "%ld", test_roll);
1043- if (get_string(p, tmp_val, 10, TRUE)) test_roll = atol(tmp_val);
1043+ if (get_string(p, tmp_val, 10)) test_roll = atol(tmp_val);
10441044 test_roll = MAX(1, test_roll);
10451045
10461046 /* Let us know what we are doing */
@@ -1163,7 +1163,7 @@ static void wiz_quantity_item(object_type *o_ptr)
11631163 sprintf(tmp_val, "%d", o_ptr->number);
11641164
11651165 /* Query */
1166- if (get_string("Quantity: ", tmp_val, 2, TRUE))
1166+ if (get_string("Quantity: ", tmp_val, 2))
11671167 {
11681168 /* Extract */
11691169 tmp_int = atoi(tmp_val);
@@ -1492,7 +1492,7 @@ static void do_cmd_wiz_jump(void)
14921492 sprintf(tmp_val, "%d", dungeon_type);
14931493
14941494 /* Ask for a level */
1495- if (!get_string(ppp, tmp_val, 2, TRUE)) return;
1495+ if (!get_string(ppp, tmp_val, 2)) return;
14961496
14971497 tmp_dungeon_type = atoi(tmp_val);
14981498 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)
15041504 sprintf(tmp_val, "%d", dun_level);
15051505
15061506 /* Ask for a level */
1507- if (!get_string(ppp, tmp_val, 10, TRUE)) return;
1507+ if (!get_string(ppp, tmp_val, 10)) return;
15081508
15091509 /* Extract request */
15101510 command_arg = atoi(tmp_val);
@@ -1695,9 +1695,9 @@ static void do_cmd_wiz_create_feature(void)
16951695
16961696 /* Query */
16971697 #ifdef JP
1698- if (!get_string("地形: ", tmp_val, 3, TRUE)) return;
1698+ if (!get_string("地形: ", tmp_val, 3)) return;
16991699 #else
1700- if (!get_string("Feature: ", tmp_val, 3, TRUE)) return;
1700+ if (!get_string("Feature: ", tmp_val, 3)) return;
17011701 #endif
17021702
17031703 /* Extract */
@@ -1710,9 +1710,9 @@ static void do_cmd_wiz_create_feature(void)
17101710
17111711 /* Query */
17121712 #ifdef JP
1713- if (!get_string("地形 (mimic): ", tmp_val, 3, TRUE)) return;
1713+ if (!get_string("地形 (mimic): ", tmp_val, 3)) return;
17141714 #else
1715- if (!get_string("Feature (mimic): ", tmp_val, 3, TRUE)) return;
1715+ if (!get_string("Feature (mimic): ", tmp_val, 3)) return;
17161716 #endif
17171717
17181718 /* Extract */
Show on old repository browser