light: add maximum switchable lights to log message
This commit is contained in:
parent
43798edcfe
commit
60418ce9a7
|
|
@ -29,6 +29,8 @@
|
|||
#include <light/light.hh>
|
||||
|
||||
#define DEFAULTLIGHTLEVEL 300.0f
|
||||
#define LIGHT_TARGETS_START 32
|
||||
#define MAX_LIGHT_TARGETS 32
|
||||
|
||||
using entdict_t = std::map<std::string, std::string>;
|
||||
|
||||
|
|
|
|||
|
|
@ -57,9 +57,6 @@ const char * light_t::classname() const {
|
|||
* ============================================================================
|
||||
*/
|
||||
|
||||
#define LIGHT_TARGETS_START 32
|
||||
#define MAX_LIGHT_TARGETS 32
|
||||
|
||||
static std::map<std::string, int> 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<int>(lightstyleForTargetname.size()));
|
||||
logprint("%i switchable light styles (%d max)\n",
|
||||
static_cast<int>(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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue