• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision01216f5e1ce8c15639f4b9fe32268ec072ab4b76 (tree)
Time2019-01-07 12:45:11
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -7214,16 +7214,16 @@ static void display_feature_list(int col, int row, int per_page, FEAT_IDX *feat_
72147214 */
72157215 static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, IDX direct_f_idx, IDX *lighting_level)
72167216 {
7217- IDX i;
7217+ FEAT_IDX i;
72187218 int len, max;
7219- IDX grp_cur, grp_top, old_grp_cur;
7220- IDX feat_cur, feat_top;
7219+ FEAT_IDX grp_cur, grp_top, old_grp_cur;
7220+ FEAT_IDX feat_cur, feat_top;
72217221 int grp_cnt;
7222- IDX grp_idx[100];
7222+ FEAT_IDX grp_idx[100];
72237223 int feat_cnt;
7224- IDX *feat_idx;
7224+ FEAT_IDX *feat_idx;
72257225
7226- int column = 0;
7226+ TERM_LEN column = 0;
72277227 bool flag;
72287228 bool redraw;
72297229
@@ -7231,8 +7231,8 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, IDX d
72317231 TERM_COLOR attr_top = 0;
72327232 byte char_left = 0;
72337233
7234- int browser_rows;
7235- int wid, hgt;
7234+ TERM_LEN browser_rows;
7235+ TERM_LEN wid, hgt;
72367236
72377237 TERM_COLOR attr_old[F_LIT_MAX];
72387238 SYMBOL_CODE char_old[F_LIT_MAX];
@@ -7247,7 +7247,7 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, IDX d
72477247 browser_rows = hgt - 8;
72487248
72497249 /* Allocate the "feat_idx" array */
7250- C_MAKE(feat_idx, max_f_idx, IDX);
7250+ C_MAKE(feat_idx, max_f_idx, FEAT_IDX);
72517251
72527252 max = 0;
72537253 grp_cnt = 0;
Show on old repository browser