• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionc24bba5e12bb4071f92aa3d54b89097645078435 (tree)
Time2019-06-01 13:30:58
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 F_LIT_* 定義を feature.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -277,18 +277,6 @@
277277 #define CEM_RIDING 0x0001
278278 #define CEM_P_CAN_ENTER_PATTERN 0x0002
279279
280-
281-/* Lighting levels of features' attr and char */
282-
283-#define F_LIT_STANDARD 0 /* Standard */
284-#define F_LIT_LITE 1 /* Brightly lit */
285-#define F_LIT_DARK 2 /* Darkened */
286-
287-#define F_LIT_NS_BEGIN 1 /* Nonstandard */
288-#define F_LIT_MAX 3
289-
290-
291-
292280 /*** Object "tval" and "sval" codes ***/
293281
294282
--- a/src/feature.h
+++ b/src/feature.h
@@ -127,6 +127,17 @@
127127 #define FF_FLAG_MAX 113
128128 #define FF_FLAG_SIZE (1 + ((FF_FLAG_MAX - 1) / 32))
129129
130+
131+/* Lighting levels of features' attr and char */
132+
133+#define F_LIT_STANDARD 0 /* Standard */
134+#define F_LIT_LITE 1 /* Brightly lit */
135+#define F_LIT_DARK 2 /* Darkened */
136+
137+#define F_LIT_NS_BEGIN 1 /* Nonstandard */
138+#define F_LIT_MAX 3
139+
140+
130141 /*!
131142 * @struct feature_state
132143 * @brief 地形状態変化指定構造体 / Feature state structure
--- a/src/view-mainwindow.h
+++ b/src/view-mainwindow.h
@@ -1,4 +1,5 @@
11 #pragma once
2+#include "feature.h"
23
34 extern void get_screen_size(TERM_LEN *wid_p, TERM_LEN *hgt_p);
45 extern int panel_col_of(int col);
Show on old repository browser