diff options
Diffstat (limited to 'lightup.c')
| -rw-r--r-- | lightup.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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, |