OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48c1fbf
)
'v'isual modeでゴミを表示しないようにする条件式が間違っていたので修正。
author
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 23 Dec 2002 15:27:36 +0000
(15:27 +0000)
committer
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 23 Dec 2002 15:27:36 +0000
(15:27 +0000)
(char型で0x7fと比較する式になっていた。)
また、「'v'でシンボル変更」の説明文は 'v'isual mode が使用不可能なとき
(flavorがあるアイテムの場合)は表示しないように修正。
src/cmd4.c
patch
|
blob
|
history
diff --git
a/src/cmd4.c
b/src/cmd4.c
index
c1b4a63
..
92df469
100644
(file)
--- a/
src/cmd4.c
+++ b/
src/cmd4.c
@@
-7333,18
+7333,22
@@
static void display_visual_list(int col, int row, int height, int width, byte at
char c, c2;
int x = col + j;
int y = row + i;
char c, c2;
int x = col + j;
int y = row + i;
+ int ia, ic;
/* Bigtile mode uses double width */
if (use_bigtile) x += j;
/* Bigtile mode uses double width */
if (use_bigtile) x += j;
- a = attr_top + i;
- c = char_left + j;
+
i
a = attr_top + i;
+
i
c = char_left + j;
/* Ignore illegal characters */
/* Ignore illegal characters */
- if (
(int)attr_top + i > 0x7f || (int)char_left + j > 0xff
||
-
c < ' ' || (!use_graphics &&
c > 0x7f))
+ if (
ia > 0x7f || ic > 0xff || ic < ' '
||
+
(!use_graphics && i
c > 0x7f))
continue;
continue;
+ a = (byte)ia;
+ c = (char)ic;
+
/* Force correct code for both ASCII character and tile */
if (c & 0x80) a |= 0x80;
/* Force correct code for both ASCII character and tile */
if (c & 0x80) a |= 0x80;
@@
-8025,19
+8029,19
@@
static void do_cmd_knowledge_objects(void)
display_visual_list(max + 3, 7, browser_rows-1, wid - (max + 3), attr_top, char_left);
}
display_visual_list(max + 3, 7, browser_rows-1, wid - (max + 3), attr_top, char_left);
}
- /* Prompt */
-#ifdef JP
- prt(format("<Êý¸þ>, 'r'¤Ç»×¤¤½Ð¤ò¸«¤ë%s%s, ESC", visual_list ? ", ENTER¤Ç·èÄê" : ", 'v'¤Ç¥·¥ó¥Ü¥ëÊѹ¹", (attr_idx||char_idx) ? ", 'c', 'p'¤Ç¥Ú¡¼¥¹¥È" : ", 'c'¤Ç¥³¥Ô¡¼"), hgt - 1, 0);
-#else
- prt(format("<dir>, 'r' to recall%s%s, ESC", visual_list ? ", ENTER to accept" : ", 'v' for visuals", (attr_idx||char_idx) ? ", 'c', 'p' to paste" : ", 'c' to copy"), hgt - 1, 0);
-#endif
-
/* Get the current object */
k_ptr = &k_info[object_idx[object_cur]];
/* Mega Hack -- track this object */
if (object_cnt) object_kind_track(object_idx[object_cur]);
/* Get the current object */
k_ptr = &k_info[object_idx[object_cur]];
/* Mega Hack -- track this object */
if (object_cnt) object_kind_track(object_idx[object_cur]);
+ /* Prompt */
+#ifdef JP
+ prt(format("<Êý¸þ>, 'r'¤Ç»×¤¤½Ð¤ò¸«¤ë%s%s, ESC", k_ptr->flavor ? "" : visual_list ? ", ENTER¤Ç·èÄê" : ", 'v'¤Ç¥·¥ó¥Ü¥ëÊѹ¹", (attr_idx||char_idx) ? ", 'c', 'p'¤Ç¥Ú¡¼¥¹¥È" : ", 'c'¤Ç¥³¥Ô¡¼"), hgt - 1, 0);
+#else
+ prt(format("<dir>, 'r' to recall%s%s, ESC", k_ptr->flavor ? "" : visual_list ? ", ENTER to accept" : ", 'v' for visuals", (attr_idx||char_idx) ? ", 'c', 'p' to paste" : ", 'c' to copy"), hgt - 1, 0);
+#endif
+
/* The "current" object changed */
if (object_old != object_idx[object_cur])
{
/* The "current" object changed */
if (object_old != object_idx[object_cur])
{