• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

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

Log Message

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

Change Summary

Incremental Difference

--- a/src/monster2.c
+++ b/src/monster2.c
@@ -3577,7 +3577,7 @@ bool place_monster_aux(MONSTER_IDX who, POSITION y, POSITION x, MONRACE_IDX r_id
35773577 place_monster_m_idx = hack_m_idx_ii;
35783578
35793579 /* Reinforcement */
3580- for(i = 0; i < A_MAX; i++)
3580+ for(i = 0; i < 6; i++)
35813581 {
35823582 if(!r_ptr->reinforce_id[i]) break;
35833583 n = damroll(r_ptr->reinforce_dd[i], r_ptr->reinforce_ds[i]);
@@ -3734,8 +3734,8 @@ bool alloc_guardian(bool def_val)
37343734
37353735 if (guardian && (d_info[p_ptr->dungeon_idx].maxdepth == dun_level) && (r_info[guardian].cur_num < r_info[guardian].max_num))
37363736 {
3737- int oy;
3738- int ox;
3737+ POSITION oy;
3738+ POSITION ox;
37393739 int try_count = 4000;
37403740
37413741 /* Find a good position */
@@ -3775,7 +3775,7 @@ bool alloc_guardian(bool def_val)
37753775 */
37763776 bool alloc_monster(POSITION dis, BIT_FLAGS mode)
37773777 {
3778- int y = 0, x = 0;
3778+ POSITION y = 0, x = 0;
37793779 int attempts_left = 10000;
37803780
37813781 /* Put the Guardian */
Show on old repository browser