Browse Source

remove InitLightMax

pull/4057/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
b7b01ce1fd
  1. 1
      Source/diablo.cpp
  2. 6
      Source/lighting.cpp
  3. 3
      Source/lighting.h

1
Source/diablo.cpp

@ -2189,7 +2189,6 @@ void LoadGameLevel(bool firstflag, lvl_entry lvldir)
SetDungeonMicros();
InitLightMax();
IncProgress();
IncProgress();

6
Source/lighting.cpp

@ -20,7 +20,6 @@ int VisionId;
Light Lights[MAXLIGHTS];
uint8_t ActiveLights[MAXLIGHTS];
int ActiveLightCount;
char LightsMax;
std::array<uint8_t, LIGHTSIZE> LightTables;
bool DisableLighting;
bool UpdateLighting;
@ -938,11 +937,6 @@ void ToggleLighting()
}
#endif
void InitLightMax()
{
LightsMax = 15;
}
void InitLighting()
{
ActiveLightCount = 0;

3
Source/lighting.h

@ -44,7 +44,7 @@ extern int VisionId;
extern Light Lights[MAXLIGHTS];
extern uint8_t ActiveLights[MAXLIGHTS];
extern int ActiveLightCount;
extern char LightsMax;
constexpr char LightsMax = 15;
extern std::array<uint8_t, LIGHTSIZE> LightTables;
extern DVL_API_FOR_TEST bool DisableLighting;
extern bool UpdateLighting;
@ -56,7 +56,6 @@ void MakeLightTable();
#ifdef _DEBUG
void ToggleLighting();
#endif
void InitLightMax();
void InitLighting();
int AddLight(Point position, int r);
void AddUnLight(int i);

Loading…
Cancel
Save