• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

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


コミットメタ情報

リビジョン19e2a58ee69b2789d2c4000209095f3130d9b387 (tree)
日時2017-09-23 13:27:01
作者Deskull <desull@user...>
コミッターDeskull

ログメッセージ

#37287 #37353 (2.2.0.89) 型の置換を継続中。 / Ongoing type replacement.

変更サマリ

差分

--- a/src/externs.h
+++ b/src/externs.h
@@ -396,9 +396,9 @@ extern bool closing_flag;
396396 extern s16b panel_row_min, panel_row_max;
397397 extern s16b panel_col_min, panel_col_max;
398398 extern s16b panel_col_prt, panel_row_prt;
399-extern s16b target_who;
400-extern s16b target_col;
401-extern s16b target_row;
399+extern idx target_who;
400+extern position target_col;
401+extern position target_row;
402402 extern int player_uid;
403403 extern int player_euid;
404404 extern int player_egid;
@@ -1219,7 +1219,7 @@ extern bool cave_player_teleportable_bold(int y, int x, u32b mode);
12191219 extern bool teleport_player_aux(int dis, u32b mode);
12201220 extern void teleport_player(int dis, u32b mode);
12211221 extern void teleport_player_away(int m_idx, int dis);
1222-extern void teleport_player_to(int ny, int nx, u32b mode);
1222+extern void teleport_player_to(position ny, position nx, u32b mode);
12231223 extern void teleport_away_followable(int m_idx);
12241224 extern void teleport_level(int m_idx);
12251225 extern int choose_dungeon(cptr note, int y, int x);
@@ -1583,7 +1583,7 @@ extern void breath(int y, int x, int m_idx, int typ, int dam_hp, int rad, bool b
15831583
15841584 /* mspells2.c */
15851585 extern void get_project_point(int sy, int sx, int *ty, int *tx, int flg);
1586-extern bool monst_spell_monst(int m_idx);
1586+extern bool monst_spell_monst(idx m_idx);
15871587
15881588 /* mspells3.c */
15891589 extern bool do_cmd_cast_learned(void);
--- a/src/h-type.h
+++ b/src/h-type.h
@@ -124,7 +124,7 @@ typedef byte object_type_value; /*!< ゲーム中のアイテム主分類の
124124 typedef byte object_subtype_value; /*!< ゲーム中のアイテム副分類の型定義 */
125125 typedef s16b parameter_value; /*!< ゲーム中のアイテム能力値の型定義 */
126126
127-typedef s32b str_offset; /*!< テキストオフセットの型定義 */
127+typedef u32b str_offset; /*!< テキストオフセットの型定義 */
128128
129129 /*** Pointers to all the basic types defined above ***/
130130
--- a/src/init.h
+++ b/src/init.h
@@ -86,13 +86,10 @@ struct header
8686
8787 u16b head_size; /* Size of the "header" in bytes */
8888
89- u32b info_size; /* Size of the "info" array in bytes */
90-
91- u32b name_size; /* Size of the "name" array in bytes */
92-
93- u32b text_size; /* Size of the "text" array in bytes */
94-
95- u32b tag_size; /* Size of the "tag" array in bytes */
89+ str_offset info_size; /* Size of the "info" array in bytes */
90+ str_offset name_size; /* Size of the "name" array in bytes */
91+ str_offset text_size; /* Size of the "text" array in bytes */
92+ str_offset tag_size; /* Size of the "tag" array in bytes */
9693
9794 void *info_ptr;
9895 char *name_ptr;
--- a/src/mspells2.c
+++ b/src/mspells2.c
@@ -253,7 +253,7 @@ static bool dispel_check_monster(int m_idx, int t_idx)
253253 * @details
254254 * The player is only disturbed if able to be affected by the spell.
255255 */
256-bool monst_spell_monst(int m_idx)
256+bool monst_spell_monst(idx m_idx)
257257 {
258258 int y = 0, x = 0;
259259 int i, k, t_idx = 0;
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -556,9 +556,10 @@ void teleport_player_away(int m_idx, int dis)
556556 * This function allows teleporting into vaults (!)
557557 * </pre>
558558 */
559-void teleport_player_to(int ny, int nx, u32b mode)
559+void teleport_player_to(position ny, position nx, u32b mode)
560560 {
561- int y, x, dis = 0, ctr = 0;
561+ position y, x;
562+ int dis = 0, ctr = 0;
562563
563564 if (p_ptr->anti_tele && !(mode & TELEPORT_NONMAGICAL))
564565 {
@@ -572,8 +573,8 @@ void teleport_player_to(int ny, int nx, u32b mode)
572573 /* Pick a nearby legal location */
573574 while (1)
574575 {
575- y = rand_spread(ny, dis);
576- x = rand_spread(nx, dis);
576+ y = (position)rand_spread(ny, dis);
577+ x = (position)rand_spread(nx, dis);
577578 if (in_bounds(y, x)) break;
578579 }
579580
--- a/src/variable.c
+++ b/src/variable.c
@@ -390,9 +390,9 @@ s16b panel_col_prt, panel_row_prt;
390390 /*
391391 * Targetting variables
392392 */
393-s16b target_who;
394-s16b target_col;
395-s16b target_row;
393+idx target_who;
394+position target_col;
395+position target_row;
396396
397397
398398 /*
旧リポジトリブラウザで表示