byte a;
byte c;
+ bool graf_new = (use_graphics && (strcmp(ANGBAND_GRAF, "new") == 0));
+
/* Get the cave */
c_ptr = &cave[y][x];
a = f_ptr->x_attr;
/* Special lighting effects */
- if (view_special_lite && (!p_ptr->wild_mode) && ((a == TERM_WHITE) || use_transparency))
+ if (view_special_lite && (!p_ptr->wild_mode) && ((a == TERM_WHITE) || graf_new))
{
/* Handle "blind" */
if (p_ptr->blind)
/* Use darkened colour */
a = lighting_colours[a][1];
}
- else if (use_transparency && feat_supports_lighting(feat))
+ else if (graf_new && feat_supports_lighting(feat))
{
/* Use a dark tile */
c++;
}
else
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a dark tile */
c++;
/* Use lightened colour */
a = lighting_colours[a][0];
}
- else if (use_transparency &&
+ else if (graf_new &&
feat_supports_lighting(feat))
{
/* Use a brightly lit tile */
/* Torch lite */
if (view_yellow_lite)
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a brightly lit tile */
c += 2;
/* Use darkened colour */
a = lighting_colours[a][1];
}
- else if (use_transparency && feat_supports_lighting(feat))
+ else if (graf_new && feat_supports_lighting(feat))
{
/* Use a dark tile */
c++;
}
else
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a dark tile */
c++;
/* Use darkened colour */
a = lighting_colours[a][1];
}
- else if (use_transparency && feat_supports_lighting(feat))
+ else if (graf_new && feat_supports_lighting(feat))
{
/* Use a dark tile */
c++;
}
else
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a dark tile */
c++;
/* Use darkened colour */
a = lighting_colours[a][1];
}
- else if (use_transparency && feat_supports_lighting(feat))
+ else if (graf_new && feat_supports_lighting(feat))
{
/* Use a dark tile */
c++;
else if (c_ptr->info & (CAVE_LITE | CAVE_MNLT))
{
/* Torch lite */
- if (view_yellow_lite && !p_ptr->wild_mode && (!use_transparency || feat_supports_lighting(feat) || is_ascii_graphics(c,a)))
+ if (view_yellow_lite && !p_ptr->wild_mode && ((graf_new && feat_supports_lighting(feat)) || is_ascii_graphics(c,a)))
{
if (is_ascii_graphics(c,a))
{
/* Use lightened colour */
a = lighting_colours[a][0];
}
- else if (use_transparency &&
+ else if (graf_new &&
feat_supports_lighting(c_ptr->feat))
{
/* Use a brightly lit tile */
}
/* Handle "view_bright_lite" */
- else if (view_bright_lite && !p_ptr->wild_mode && (!use_transparency || feat_supports_lighting(feat) || is_ascii_graphics(c,a)))
+ else if (view_bright_lite && !p_ptr->wild_mode && ((graf_new && feat_supports_lighting(feat)) || is_ascii_graphics(c,a)))
{
/* Not viewable */
if (!(c_ptr->info & CAVE_VIEW))
/* Use darkened colour */
a = lighting_colours[a][1];
}
- else if (use_transparency && feat_supports_lighting(feat))
+ else if (graf_new && feat_supports_lighting(feat))
{
/* Use a dark tile */
c++;
}
/* Special lighting effects */
else if (view_granite_lite && !p_ptr->wild_mode &&
- (((a == TERM_WHITE) && !use_transparency) ||
- (use_transparency && feat_supports_lighting(c_ptr->feat))))
+ (((a == TERM_WHITE) && !graf_new) ||
+ (graf_new && feat_supports_lighting(c_ptr->feat))))
{
/* Handle "blind" */
if (p_ptr->blind)
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a dark tile */
c++;
/* Torch lite */
if (view_yellow_lite && !p_ptr->wild_mode)
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a brightly lit tile */
c += 2;
/* Not viewable */
if (!(c_ptr->info & CAVE_VIEW))
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a dark tile */
c++;
/* Not glowing */
else if (!(c_ptr->info & CAVE_GLOW))
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a lit tile */
}
/* Check for "local" illumination */
if (!(cave[yy][xx].info & CAVE_GLOW))
{
- if (use_transparency)
+ if (graf_new)
{
/* Use a lit tile */
}