• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione71f86b44505fdc185e25d030585b08a8dab4634 (tree)
Time2019-02-20 23:32:06
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/floor-generate.c
+++ b/src/floor-generate.c
@@ -587,8 +587,8 @@ static void gen_caverns_and_lakes(void)
587587 */
588588 static bool cave_gen(void)
589589 {
590- int i, k, y, x;
591-
590+ int i, k;
591+ POSITION y, x;
592592 dun_data dun_body;
593593
594594 /* Global data */
@@ -670,11 +670,9 @@ static bool cave_gen(void)
670670 }
671671 }
672672
673-
674673 /* Generate various caverns and lakes */
675674 gen_caverns_and_lakes();
676675
677-
678676 /* Build maze */
679677 if (d_info[p_ptr->dungeon_idx].flags1 & DF1_MAZE)
680678 {
@@ -768,7 +766,7 @@ static bool cave_gen(void)
768766 /* Hack -- Scramble the room order */
769767 for (i = 0; i < dun->cent_n; i++)
770768 {
771- int ty, tx;
769+ POSITION ty, tx;
772770 int pick = rand_range(0, i);
773771
774772 ty = dun->cent[i].y;
Show on old repository browser