aboutsummaryrefslogtreecommitdiff
path: root/lightup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lightup.c')
-rw-r--r--lightup.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lightup.c b/lightup.c
index 181c502..db9fa2d 100644
--- a/lightup.c
+++ b/lightup.c
@@ -2168,11 +2168,8 @@ static void tile_redraw(drawing *dr, game_drawstate *ds,
lcol, COL_BLACK);
} else if ((ds_flags & DF_IMPOSSIBLE)) {
static int draw_blobs_when_lit = -1;
- if (draw_blobs_when_lit < 0) {
- char *env = getenv("LIGHTUP_LIT_BLOBS");
- draw_blobs_when_lit = (!env || (env[0] == 'y' ||
- env[0] == 'Y'));
- }
+ if (draw_blobs_when_lit < 0)
+ draw_blobs_when_lit = getenv_bool("LIGHTUP_LIT_BLOBS", true);
if (!(ds_flags & DF_LIT) || draw_blobs_when_lit) {
int rlen = TILE_SIZE / 4;
draw_rect(dr, dx + TILE_SIZE/2 - rlen/2,