• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona6e3f75de4ed504eb1f6e481cb615a6662ba7226 (tree)
Time2019-06-01 17:45:00
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 is_ascii_graphics マクロを改名して view-mainwindow.c へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -363,14 +363,6 @@ extern int PlayerUID;
363363
364364 /*** Color constants ***/
365365
366-/*
367- * Not using graphical tiles for this feature?
368- */
369-#define is_ascii_graphics(A) (!((A) & 0x80))
370-
371-
372-/*** Hack ***/
373-
374366
375367 /*
376368 * Hack -- attempt to reduce various values
--- a/src/view-mainwindow.c
+++ b/src/view-mainwindow.c
@@ -43,6 +43,12 @@
4343 #include "objectkind.h"
4444 #include "targeting.h"
4545
46+ /*
47+ * Not using graphical tiles for this feature?
48+ */
49+#define IS_ASCII_GRAPHICS(A) (!((A) & 0x80))
50+
51+
4652 static int feat_priority; /*!< マップ縮小表示時に表示すべき地形の優先度を保管する */
4753 static byte display_autopick; /*!< 自動拾い状態の設定フラグ */
4854 static int match_autopick;
@@ -2734,7 +2740,7 @@ void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], SYMBOL_CODE f_cha
27342740 SYMBOL_CODE s_char = f_char[F_LIT_STANDARD];
27352741 int i;
27362742
2737- if (is_ascii_graphics(s_attr)) /* For ASCII */
2743+ if (IS_ASCII_GRAPHICS(s_attr)) /* For ASCII */
27382744 {
27392745 f_attr[F_LIT_LITE] = lighting_colours[s_attr & 0x0f][0];
27402746 f_attr[F_LIT_DARK] = lighting_colours[s_attr & 0x0f][1];
@@ -3814,7 +3820,7 @@ void prt_path(POSITION y, POSITION x)
38143820 /* Determine what is there */
38153821 map_info(ny, nx, &a, &c, &ta, &tc);
38163822
3817- if (!is_ascii_graphics(a))
3823+ if (!IS_ASCII_GRAPHICS(a))
38183824 a = default_color;
38193825 else if (c == '.' && (a == TERM_WHITE || a == TERM_L_WHITE))
38203826 a = default_color;
Show on old repository browser