• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

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


コミットメタ情報

リビジョン2d9e4463e5aff22c498c550465680592cc51992a (tree)
日時2019-02-09 19:16:04
作者Deskull <deskull@user...>
コミッターDeskull

ログメッセージ

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

変更サマリ

差分

--- a/src/externs.h
+++ b/src/externs.h
@@ -272,7 +272,7 @@ extern object_type *o_list;
272272 extern monster_type *m_list;
273273 extern s16b *mproc_list[MAX_MTIMED];
274274 extern s16b mproc_max[MAX_MTIMED];
275-extern u16b max_towns;
275+extern TOWN_IDX max_towns;
276276 extern town_type *town_info;
277277 extern object_type *inventory;
278278 extern s16b alloc_kind_size;
--- a/src/init1.c
+++ b/src/init1.c
@@ -4322,13 +4322,13 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
43224322 /* Maximum towns */
43234323 if (zz[0][0] == 'T')
43244324 {
4325- max_towns = (IDX)atoi(zz[1]);
4325+ max_towns = (TOWN_IDX)atoi(zz[1]);
43264326 }
43274327
43284328 /* Maximum quests */
43294329 else if (zz[0][0] == 'Q')
43304330 {
4331- max_q_idx = (IDX)atoi(zz[1]);
4331+ max_q_idx = (QUEST_IDX)atoi(zz[1]);
43324332 }
43334333
43344334 /* Maximum r_idx */
--- a/src/variable.c
+++ b/src/variable.c
@@ -507,7 +507,7 @@ s16b mproc_max[MAX_MTIMED]; /* Number of monsters to be processed */
507507 /*
508508 * Maximum number of towns
509509 */
510-u16b max_towns;
510+TOWN_IDX max_towns;
511511
512512 /*
513513 * The towns [max_towns]
旧リポジトリブラウザで表示