aboutsummaryrefslogtreecommitdiff
path: root/loopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'loopy.c')
-rw-r--r--loopy.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/loopy.c b/loopy.c
index 0a22e6a..c627f2b 100644
--- a/loopy.c
+++ b/loopy.c
@@ -3292,11 +3292,8 @@ static void game_redraw_line(drawing *dr, game_drawstate *ds,
if (line_colour == COL_FAINT) {
static int draw_faint_lines = -1;
- if (draw_faint_lines < 0) {
- char *env = getenv("LOOPY_FAINT_LINES");
- draw_faint_lines = (!env || (env[0] == 'y' ||
- env[0] == 'Y'));
- }
+ if (draw_faint_lines < 0)
+ draw_faint_lines = getenv_bool("LOOPY_FAINT_LINES", true);
if (draw_faint_lines)
draw_line(dr, x1, y1, x2, y2, line_colour);
} else {