From 00e60f923eb095f495e2159d017e83c6562a1a12 Mon Sep 17 00:00:00 2001 From: MaxED Date: Sun, 15 Apr 2018 01:43:46 +0300 Subject: [PATCH] Q2 doesn't need .lit files (#211) * Ignore embree * Don't ignore embree... * Q2 doesn't need .lit files. Also fixed a typo. --- light/entities.cc | 2 +- light/light.cc | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/light/entities.cc b/light/entities.cc index b2af9695..d087643a 100644 --- a/light/entities.cc +++ b/light/entities.cc @@ -281,7 +281,7 @@ EntDict_CheckTargetnameKeyMatched(const mbsp_t *bsp, const entdict_t &entity, co } if (!found) { - logprint("WARNING: %s has targetname \"%s\" which is not targetted by anything.\n", + logprint("WARNING: %s has targetname \"%s\", which is not targeted by anything.\n", EntDict_PrettyDescription(bsp, entity).c_str(), targetnameVal.c_str()); ok = false; diff --git a/light/light.cc b/light/light.cc index 8579b131..12ca80fa 100644 --- a/light/light.cc +++ b/light/light.cc @@ -1087,11 +1087,11 @@ light_main(int argc, const char **argv) else { if (write_litfile & 1) - logprint(".lit colored light output requested on command line.\n"); + logprint(".lit colored light output requested on command line.\n"); if (write_litfile & 2) logprint("BSPX colored light output requested on command line.\n"); if (write_luxfile & 1) - logprint(".lux light directions output requested on command line.\n"); + logprint(".lux light directions output requested on command line.\n"); if (write_luxfile & 2) logprint("BSPX light directions output requested on command line.\n"); } @@ -1158,7 +1158,8 @@ light_main(int argc, const char **argv) if (!onlyents) { - CheckLitNeeded(cfg); + if (loadversion != Q2_BSPVERSION) //mxd. No lit for Quake 2 + CheckLitNeeded(cfg); SetupDirt(cfg); LightWorld(&bspdata, !!lmscaleoverride);