• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision96d6f724e69d8312b47b1b86a19c2bcef23ba7bb (tree)
Time2019-02-12 22:24:54
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -739,7 +739,7 @@ static void image_random(TERM_COLOR *ap, SYMBOL_CODE *cp)
739739 *\n
740740 * The layout of the array is [x][0] = light and [x][1] = dark.\n
741741 */
742-static byte lighting_colours[16][2] =
742+static TERM_COLOR lighting_colours[16][2] =
743743 {
744744 /* TERM_DARK */
745745 {TERM_L_DARK, TERM_DARK},
@@ -2555,7 +2555,8 @@ void forget_lite(void)
25552555 */
25562556 void update_lite(void)
25572557 {
2558- int i, x, y, min_x, max_x, min_y, max_y;
2558+ int i;
2559+ POSITION x, y, min_x, max_x, min_y, max_y;
25592560 int p = p_ptr->cur_lite;
25602561 grid_type *g_ptr;
25612562
@@ -3655,7 +3656,6 @@ void update_view(void)
36553656 if (!cave_los_grid(g_ptr)) break;
36563657 }
36573658
3658-
36593659 /*** Step 3 -- major axes ***/
36603660
36613661 /* Scan south */
@@ -3712,8 +3712,7 @@ void update_view(void)
37123712 /* Now check each "diagonal" (in parallel) */
37133713 for (n = 1; n <= over / 2; n++)
37143714 {
3715- int ypn, ymn, xpn, xmn;
3716-
3715+ POSITION ypn, ymn, xpn, xmn;
37173716
37183717 /* Acquire the "bounds" of the maximal circle */
37193718 z = over - n - n;
@@ -3995,7 +3994,8 @@ void update_view(void)
39953994 */
39963995 void delayed_visual_update(void)
39973996 {
3998- int i, y, x;
3997+ int i;
3998+ POSITION y, x;
39993999 grid_type *g_ptr;
40004000
40014001 /* Update needed grids */
@@ -4071,7 +4071,8 @@ static POSITION flow_y = 0;
40714071 */
40724072 void update_flow(void)
40734073 {
4074- POSITION x, y, d;
4074+ POSITION x, y;
4075+ DIRECTION d;
40754076 int flow_head = 1;
40764077 int flow_tail = 0;
40774078
Show on old repository browser