• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision5ca607422c5b4a7960c571bc3e19e5020dbd55c0 (tree)
Time2019-01-11 13:16:42
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement.

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -1699,10 +1699,10 @@ void prt_map(void)
16991699 for (x = xmin; x <= xmax; x++)
17001700 {
17011701 TERM_COLOR a;
1702- char c;
1702+ SYMBOL_CODE c;
17031703
17041704 TERM_COLOR ta;
1705- char tc;
1705+ SYMBOL_CODE tc;
17061706
17071707 /* Determine what is there */
17081708 map_info(y, x, &a, &c, &ta, &tc);
--- a/src/object1.c
+++ b/src/object1.c
@@ -2043,7 +2043,7 @@ static void prepare_label_string(char *label, BIT_FLAGS mode)
20432043 for (i = 0; i < 52; i++)
20442044 {
20452045 COMMAND_CODE index;
2046- char c = alphabet_chars[i];
2046+ SYMBOL_CODE c = alphabet_chars[i];
20472047
20482048 /* Find a tag with this label */
20492049 if (get_tag(&index, c, mode))
@@ -2080,7 +2080,7 @@ static void prepare_label_string_floor(char *label, FLOOR_IDX floor_list[], ITEM
20802080 for (i = 0; i < 52; i++)
20812081 {
20822082 COMMAND_CODE index;
2083- char c = alphabet_chars[i];
2083+ SYMBOL_CODE c = alphabet_chars[i];
20842084
20852085 /* Find a tag with this label */
20862086 if (get_tag_floor(&index, c, floor_list, floor_num))
@@ -2225,8 +2225,8 @@ COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode)
22252225 /* Display graphics for object, if desired */
22262226 if (show_item_graph)
22272227 {
2228- byte a = object_attr(o_ptr);
2229- char c = object_char(o_ptr);
2228+ TERM_COLOR a = object_attr(o_ptr);
2229+ SYMBOL_CODE c = object_char(o_ptr);
22302230 Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
22312231 if (use_bigtile) cur_col++;
22322232
@@ -2397,8 +2397,8 @@ COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode)
23972397 /* Display graphics for object, if desired */
23982398 if (show_item_graph)
23992399 {
2400- byte a = object_attr(o_ptr);
2401- char c = object_char(o_ptr);
2400+ TERM_COLOR a = object_attr(o_ptr);
2401+ SYMBOL_CODE c = object_char(o_ptr);
24022402 Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
24032403 if (use_bigtile) cur_col++;
24042404
--- a/src/report.c
+++ b/src/report.c
@@ -316,7 +316,7 @@ cptr make_screen_dump(void)
316316 cptr ret;
317317
318318 TERM_COLOR a = 0, old_a = 0;
319- char c = ' ';
319+ SYMBOL_CODE c = ' ';
320320
321321 static cptr html_head[] = {
322322 "<html>\n<body text=\"#ffffff\" bgcolor=\"#000000\">\n",
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -6850,8 +6850,8 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
68506850 {
68516851 u16b p;
68526852
6853- byte a;
6854- char c;
6853+ TERM_COLOR a;
6854+ SYMBOL_CODE c;
68556855
68566856 /* Obtain the bolt pict */
68576857 p = bolt_pict(oy, ox, y, x, typ);
@@ -6989,7 +6989,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
69896989 u16b p;
69906990
69916991 TERM_COLOR a;
6992- char c;
6992+ SYMBOL_CODE c;
69936993
69946994 /* Obtain the bolt pict */
69956995 p = bolt_pict(oy, ox, y, x, typ);
@@ -7132,8 +7132,8 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
71327132 {
71337133 u16b p;
71347134
7135- byte a;
7136- char c;
7135+ TERM_COLOR a;
7136+ SYMBOL_CODE c;
71377137
71387138 /* Obtain the bolt pict */
71397139 p = bolt_pict(oy, ox, y, x, typ);
@@ -7295,7 +7295,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
72957295 u16b p;
72967296
72977297 TERM_COLOR a;
7298- char c;
7298+ SYMBOL_CODE c;
72997299
73007300 drawn = TRUE;
73017301
--- a/src/store.c
+++ b/src/store.c
@@ -2245,8 +2245,8 @@ static void display_entry(int pos)
22452245 cur_col = 3;
22462246 if (show_item_graph)
22472247 {
2248- byte a = object_attr(o_ptr);
2249- char c = object_char(o_ptr);
2248+ TERM_COLOR a = object_attr(o_ptr);
2249+ SYMBOL_CODE c = object_char(o_ptr);
22502250
22512251 Term_queue_bigchar(cur_col, i + 6, a, c, 0, 0);
22522252 if (use_bigtile) cur_col++;
Show on old repository browser