• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione3ce8358e40126643975ee05e3955633057bc56f (tree)
Time2019-02-12 23:58:52
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/melee1.c
+++ b/src/melee1.c
@@ -294,18 +294,18 @@ static void touch_zap_player(monster_type *m_ptr)
294294 * @param mdeath 攻撃を受けたモンスターが死亡したかを返す参照ポインタ
295295 * @return なし
296296 */
297-static void natural_attack(s16b m_idx, int attack, bool *fear, bool *mdeath)
297+static void natural_attack(MONSTER_IDX m_idx, int attack, bool *fear, bool *mdeath)
298298 {
299299 HIT_POINT k;
300300 int bonus, chance;
301- int n_weight = 0;
302- monster_type *m_ptr = &m_list[m_idx];
303- monster_race *r_ptr = &r_info[m_ptr->r_idx];
301+ WEIGHT n_weight = 0;
302+ monster_type *m_ptr = &m_list[m_idx];
303+ monster_race *r_ptr = &r_info[m_ptr->r_idx];
304304 GAME_TEXT m_name[MAX_NLEN];
305305
306- int dice_num, dice_side;
306+ int dice_num, dice_side;
307307
308- concptr atk_desc;
308+ concptr atk_desc;
309309
310310 switch (attack)
311311 {
Show on old repository browser