• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision5ff8255decf8983169a567e4e2c32cf8641a14e1 (tree)
Time2019-06-04 23:28:35
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 LITE_MAX, MON_LITE_MAX を floor.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -94,21 +94,6 @@
9494 #define FAKE_TAG_SIZE 10 * 1024L /*!< ゲーム情報の種別毎に用意されるタグ用バッファの容量 */
9595
9696 /*!
97- * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "current_floor_ptr->grid_array.c")
98- * @details Note that the "lite radius" will NEVER exceed 14, and we would
99- * never require more than 581 entries in the array for circular "lite".
100- */
101-#define LITE_MAX 600
102-
103-/*!
104- * @brief モンスター用光源処理配列サイズ / Maximum size of the "mon_lite" array (see "current_floor_ptr->grid_array.c")
105- * @details Note that the "view radius" will NEVER exceed 20, monster illumination
106- * flags are dependent on CAVE_VIEW, and even if the "view" was octagonal,
107- * we would never require more than 1520 entries in the array.
108- */
109-#define MON_LITE_MAX 1536
110-
111-/*!
11297 * @brief 視界処理配列サイズ / Maximum size of the "view" array (see "current_floor_ptr->grid_array.c")
11398 * @details Note that the "view radius" will NEVER exceed 20, and even if the "view"
11499 * was octagonal, we would never require more than 1520 entries in the array.
--- a/src/floor.h
+++ b/src/floor.h
@@ -19,12 +19,27 @@
1919 */
2020 #define BLOCK_HGT 11
2121
22- /*!
23- * @brief generate.cで用いられる基本的なブロック数単位(水平方向)
24- * Number of grids in each block (horizontally) Probably hard-coded to 11, see "generate.c"
25- */
22+/*!
23+ * @brief generate.cで用いられる基本的なブロック数単位(水平方向)
24+ * Number of grids in each block (horizontally) Probably hard-coded to 11, see "generate.c"
25+ */
2626 #define BLOCK_WID 11
2727
28+/*!
29+ * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "current_floor_ptr->grid_array.c")
30+ * @details Note that the "lite radius" will NEVER exceed 14, and we would
31+ * never require more than 581 entries in the array for circular "lite".
32+ */
33+#define LITE_MAX 600
34+
35+/*!
36+ * @brief モンスター用光源処理配列サイズ / Maximum size of the "mon_lite" array (see "current_floor_ptr->grid_array.c")
37+ * @details Note that the "view radius" will NEVER exceed 20, monster illumination
38+ * flags are dependent on CAVE_VIEW, and even if the "view" was octagonal,
39+ * we would never require more than 1520 entries in the array.
40+ */
41+#define MON_LITE_MAX 1536
42+
2843 typedef struct {
2944 grid_type *grid_array[MAX_HGT];
3045 DEPTH dun_level; /*!< 現在の実ダンジョン階層base_levelの参照元となる / Current dungeon level */
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -3186,7 +3186,7 @@ static void calc_torch(void)
31863186 }
31873187
31883188 /* max radius is 14 (was 5) without rewriting other code -- */
3189- /* see current_floor_ptr->grid_array.c:update_lite() and defines.h:LITE_MAX */
3189+ /* see grid.c:update_lite() and defines.h:LITE_MAX */
31903190 if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS && p_ptr->cur_lite > 1)
31913191 p_ptr->cur_lite = 1;
31923192
Show on old repository browser