• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

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


コミットメタ情報

リビジョンd93fe8626b3b51507ea1ee09c49e5d501b1c500d (tree)
日時2017-06-25 23:18:23
作者Deskull <desull@user...>
コミッターDeskull

ログメッセージ

#37287 rooms.c内のC4457警告に対応。ソースコード整形。 / Deal C4457 warning in rooms.c. Source code formatting.

変更サマリ

差分

--- a/src/generate.h
+++ b/src/generate.h
@@ -35,7 +35,6 @@
3535 #define DUN_TUN_JCT_MIN 60 /* Chance of doors at tunnel junctions (was 90) */
3636 #define DUN_TUN_JCT_MAX 90
3737
38-extern int dun_rooms;
3938
4039 extern int dun_tun_rnd; /*!< ダンジョンの通路方向を掻き回す頻度(一回の試行ごとに%で判定している) */
4140 extern int dun_tun_chg; /*!< ダンジョンの通路をクランクさせる頻度(一回の試行ごとに%で判定している) */
--- a/src/rooms.c
+++ b/src/rooms.c
@@ -4379,23 +4379,23 @@ static void build_bubble_vault(int x0, int y0, int xsize, int ysize)
43794379 /* Top and bottom boundaries */
43804380 for (i = 0; i < xsize; i++)
43814381 {
4382- int x = x0 - xhsize + i;
4382+ int side_x = x0 - xhsize + i;
43834383
4384- place_outer_noperm_bold(y0 - yhsize + 0, x);
4385- cave[y0 - yhsize + 0][x].info |= (CAVE_ROOM | CAVE_ICKY);
4386- place_outer_noperm_bold(y0 - yhsize + ysize - 1, x);
4387- cave[y0 - yhsize + ysize - 1][x].info |= (CAVE_ROOM | CAVE_ICKY);
4384+ place_outer_noperm_bold(y0 - yhsize + 0, side_x);
4385+ cave[y0 - yhsize + 0][side_x].info |= (CAVE_ROOM | CAVE_ICKY);
4386+ place_outer_noperm_bold(y0 - yhsize + ysize - 1, side_x);
4387+ cave[y0 - yhsize + ysize - 1][side_x].info |= (CAVE_ROOM | CAVE_ICKY);
43884388 }
43894389
43904390 /* Left and right boundaries */
43914391 for (i = 1; i < ysize - 1; i++)
43924392 {
4393- int y = y0 - yhsize + i;
4393+ int side_y = y0 - yhsize + i;
43944394
4395- place_outer_noperm_bold(y, x0 - xhsize + 0);
4396- cave[y][x0 - xhsize + 0].info |= (CAVE_ROOM | CAVE_ICKY);
4397- place_outer_noperm_bold(y, x0 - xhsize + xsize - 1);
4398- cave[y][x0 - xhsize + xsize - 1].info |= (CAVE_ROOM | CAVE_ICKY);
4395+ place_outer_noperm_bold(side_y, x0 - xhsize + 0);
4396+ cave[side_y][x0 - xhsize + 0].info |= (CAVE_ROOM | CAVE_ICKY);
4397+ place_outer_noperm_bold(side_y, x0 - xhsize + xsize - 1);
4398+ cave[side_y][x0 - xhsize + xsize - 1].info |= (CAVE_ROOM | CAVE_ICKY);
43994399 }
44004400
44014401 /* Fill in middle with bubbles */
旧リポジトリブラウザで表示