From 8a7164791e72880f5ea4e06319ebbdd2b6408b91 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 2 Oct 2021 21:00:45 -0600 Subject: [PATCH] light: fix "don't do this on Q2" logic for 0 light faces --- light/ltface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/ltface.cc b/light/ltface.cc index 4a2ef9fa..77a2cbfa 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -3081,7 +3081,7 @@ WriteLightmaps(const mbsp_t *bsp, bsp2_dface_t *face, facesup_t *facesup, const continue; // skip lightmaps where all samples have brightness below 1 - if (bsp->loadversion->game->id == GAME_QUAKE_II) { // HACK: don't do this on Q2. seems if all styles are 0xff, the face is drawn fullbright instead of black (Q1) + if (bsp->loadversion->game->id != GAME_QUAKE_II) { // HACK: don't do this on Q2. seems if all styles are 0xff, the face is drawn fullbright instead of black (Q1) const float maxb = Lightmap_MaxBrightness(&lightmap, lightsurf); if (maxb < 1) continue;