• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision829cfbfc79afeb6f5eb21608d1e9b2d3943c89f5 (tree)
Time2019-02-06 23:53:50
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/spells3.c
+++ b/src/spells3.c
@@ -784,7 +784,7 @@ DUNGEON_IDX choose_dungeon(concptr note, POSITION y, POSITION x)
784784 }
785785
786786 /* Allocate the "dun" array */
787- C_MAKE(dun, max_d_idx, s16b);
787+ C_MAKE(dun, max_d_idx, DUNGEON_IDX);
788788
789789 screen_save();
790790 for(i = 1; i < max_d_idx; i++)
@@ -818,7 +818,7 @@ DUNGEON_IDX choose_dungeon(concptr note, POSITION y, POSITION x)
818818 if ((i == ESCAPE) || !num)
819819 {
820820 /* Free the "dun" array */
821- C_KILL(dun, max_d_idx, s16b);
821+ C_KILL(dun, max_d_idx, DUNGEON_IDX);
822822
823823 screen_load();
824824 return 0;
@@ -833,7 +833,7 @@ DUNGEON_IDX choose_dungeon(concptr note, POSITION y, POSITION x)
833833 screen_load();
834834
835835 /* Free the "dun" array */
836- C_KILL(dun, max_d_idx, s16b);
836+ C_KILL(dun, max_d_idx, DUNGEON_IDX);
837837
838838 return select_dungeon;
839839 }
@@ -4678,8 +4678,8 @@ bool shock_power(void)
46784678 if (cave[y][x].m_idx)
46794679 {
46804680 int i;
4681- int ty = y, tx = x;
4682- int oy = y, ox = x;
4681+ POSITION ty = y, tx = x;
4682+ POSITION oy = y, ox = x;
46834683 MONSTER_IDX m_idx = cave[y][x].m_idx;
46844684 monster_type *m_ptr = &m_list[m_idx];
46854685 monster_race *r_ptr = &r_info[m_ptr->r_idx];
@@ -4708,9 +4708,9 @@ bool shock_power(void)
47084708 {
47094709 msg_format(_("%sを吹き飛ばした!", "You blow %s away!"), m_name);
47104710 cave[oy][ox].m_idx = 0;
4711- cave[ty][tx].m_idx = (s16b)m_idx;
4712- m_ptr->fy = (byte_hack)ty;
4713- m_ptr->fx = (byte_hack)tx;
4711+ cave[ty][tx].m_idx = m_idx;
4712+ m_ptr->fy = ty;
4713+ m_ptr->fx = tx;
47144714
47154715 update_monster(m_idx, TRUE);
47164716 lite_spot(oy, ox);
Show on old repository browser