OSDN Git Service

暗黒光源のdarkened_grid_hack()内でテキストモード時に暗黒光源に染まっ
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 26 Nov 2003 17:55:54 +0000 (17:55 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 26 Nov 2003 17:55:54 +0000 (17:55 +0000)
た床を敢えて真っ黒い元の文字として表示いたが, この仕様にほとんど意味
はないため, 単に未知の地形の設定を使うように変更.

src/cave.c

index 8017248..a76e54b 100644 (file)
@@ -685,36 +685,16 @@ byte lighting_colours[16][2] =
        { \
                /* Unsafe cave grid -- idea borrowed from Unangband */ \
                if (view_unsafe_grids && (c_ptr->info & CAVE_UNSAFE)) \
-               { \
                        feat = FEAT_UNDETECTED; \
-\
-                       /* Access unsafe darkness */ \
-                       f_ptr = &f_info[feat]; \
-\
-                       /* Char and attr of unsafe grid */ \
-                       c = f_ptr->x_char[F_LIT_STANDARD]; \
-                       a = f_ptr->x_attr[F_LIT_STANDARD]; \
-               } \
                else \
-               { \
-                       /* For feat_priority control */ \
                        feat = FEAT_NONE; \
 \
-                       /* Access darkness */ \
-                       f_ptr = &f_info[feat]; \
+               /* Access darkness */ \
+               f_ptr = &f_info[feat]; \
 \
-                       if (use_graphics) \
-                       { \
-                               /* Char and attr of darkness */ \
-                               c = f_ptr->x_char[F_LIT_STANDARD]; \
-                               a = f_ptr->x_attr[F_LIT_STANDARD]; \
-                       } \
-                       else \
-                       { \
-                               /* Use "black" */ \
-                               a = TERM_DARK; \
-                       } \
-               } \
+               /* Char and attr of darkness */ \
+               c = f_ptr->x_char[F_LIT_STANDARD]; \
+               a = f_ptr->x_attr[F_LIT_STANDARD]; \
        } \
        else if (view_granite_lite && view_yellow_lite) \
        { \