diff --git a/include/light/entities.hh b/include/light/entities.hh index 27cc32cf..ba81511a 100644 --- a/include/light/entities.hh +++ b/include/light/entities.hh @@ -29,6 +29,8 @@ #include #define DEFAULTLIGHTLEVEL 300.0f +#define LIGHT_TARGETS_START 32 +#define MAX_LIGHT_TARGETS 32 using entdict_t = std::map; diff --git a/light/entities.cc b/light/entities.cc index 9fe8323a..18b79f09 100644 --- a/light/entities.cc +++ b/light/entities.cc @@ -57,9 +57,6 @@ const char * light_t::classname() const { * ============================================================================ */ -#define LIGHT_TARGETS_START 32 -#define MAX_LIGHT_TARGETS 32 - static std::map lightstyleForTargetname; static bool IsSwitchableLightstyle(int style) { @@ -1284,7 +1281,9 @@ WriteEntitiesToString(bsp2_t *bsp) free(bsp->dentdata); /* FIXME - why are we printing this here? */ - logprint("%i switchable light styles\n", static_cast(lightstyleForTargetname.size())); + logprint("%i switchable light styles (%d max)\n", + static_cast(lightstyleForTargetname.size()), + MAX_LIGHT_TARGETS); bsp->entdatasize = entdata.size() + 1; // +1 for a null byte at the end bsp->dentdata = (char *) calloc(bsp->entdatasize, 1);