• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision4f42bbca7225f864fcbb60984e0e043d0fe7fe20 (tree)
Time2019-02-12 00:20:10
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/wild.c
+++ b/src/wild.c
@@ -448,7 +448,8 @@ static border_type border;
448448 */
449449 void wilderness_gen(void)
450450 {
451- int i, y, x, lim;
451+ int i, lim;
452+ POSITION y, x;
452453 grid_type *g_ptr;
453454 feature_type *f_ptr;
454455
@@ -622,8 +623,8 @@ void wilderness_gen(void)
622623 if ((f_ptr->subtype == 4) || ((p_ptr->town_num == 1) && (f_ptr->subtype == 0)))
623624 {
624625 if (g_ptr->m_idx) delete_monster_idx(g_ptr->m_idx);
625- p_ptr->oldpy = (s16b)y;
626- p_ptr->oldpx = (s16b)x;
626+ p_ptr->oldpy = y;
627+ p_ptr->oldpx = x;
627628 }
628629 }
629630 }
@@ -642,8 +643,8 @@ void wilderness_gen(void)
642643 if (cave_have_flag_grid(g_ptr, FF_ENTRANCE))
643644 {
644645 if (g_ptr->m_idx) delete_monster_idx(g_ptr->m_idx);
645- p_ptr->oldpy = (s16b)y;
646- p_ptr->oldpx = (s16b)x;
646+ p_ptr->oldpy = y;
647+ p_ptr->oldpx = x;
647648 }
648649 }
649650 }
Show on old repository browser