• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision2053de41cb831a978a1009a7d85ae933f8edb236 (tree)
Time2019-06-06 22:32:43
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 MAX_WID と MAX_HGT を floor.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -63,18 +63,6 @@
6363 */
6464 #define SCREEN_WID 66
6565
66-/*!
67- * @brief 表示上のダンジョンの最大垂直サイズ(SCREEN_HGTの3倍が望ましい)
68- * Maximum dungeon height in grids, must be a multiple of SCREEN_HGT, probably hard-coded to SCREEN_HGT * 3.
69- */
70-#define MAX_HGT 66
71-
72-/*!
73- * @brief 表示上のダンジョンの最大水平サイズ(SCREEN_WIDの3倍が望ましい)
74- * Maximum dungeon width in grids, must be a multiple of SCREEN_WID, probably hard-coded to SCREEN_WID * 3.
75- */
76-#define MAX_WID 198
77-
7866 /*
7967 * Arena constants
8068 */
--- a/src/floor-generate.h
+++ b/src/floor-generate.h
@@ -1,4 +1,5 @@
11 #pragma once
2+#include "floor.h"
23
34 /*!
45 * @file generate.h
--- a/src/floor.h
+++ b/src/floor.h
@@ -26,6 +26,18 @@
2626 #define BLOCK_WID 11
2727
2828 /*!
29+ * @brief 表示上のダンジョンの最大垂直サイズ(SCREEN_HGTの3倍が望ましい)
30+ * Maximum dungeon height in grids, must be a multiple of SCREEN_HGT, probably hard-coded to SCREEN_HGT * 3.
31+ */
32+#define MAX_HGT 66
33+
34+/*!
35+ * @brief 表示上のダンジョンの最大水平サイズ(SCREEN_WIDの3倍が望ましい)
36+ * Maximum dungeon width in grids, must be a multiple of SCREEN_WID, probably hard-coded to SCREEN_WID * 3.
37+ */
38+#define MAX_WID 198
39+
40+/*!
2941 * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "current_floor_ptr->grid_array.c")
3042 * @details Note that the "lite radius" will NEVER exceed 14, and we would
3143 * never require more than 581 entries in the array for circular "lite".
--- a/src/player-move.h
+++ b/src/player-move.h
@@ -1,4 +1,5 @@
11 #pragma once
2+#include "floor.h"
23
34 extern void disturb(bool stop_search, bool flush_output);
45 extern void move_player(DIRECTION dir, bool do_pickup, bool break_trap);
--- a/src/wild.h
+++ b/src/wild.h
@@ -1,4 +1,6 @@
11 #pragma once
2+#include "floor.h"
3+
24
35 #define NO_TOWN 6
46 #define SECRET_TOWN 5
Show on old repository browser