Inline read-only Do_dynamic_light
This commit is contained in:
parent
03cedbb4cc
commit
606790f1c5
|
@ -71,7 +71,6 @@ using std::min;
|
|||
namespace dcx {
|
||||
namespace {
|
||||
|
||||
static int Do_dynamic_light=1;
|
||||
static int use_fcd_lighting;
|
||||
|
||||
static void add_light_div(g3s_lrgb &d, const g3s_lrgb &light, const fix &scale)
|
||||
|
@ -520,9 +519,6 @@ void set_dynamic_light(const d_robot_info_array &Robot_info, render_state_t &rst
|
|||
LevelUniqueLightState.Num_headlights = 0;
|
||||
#endif
|
||||
|
||||
if (!Do_dynamic_light)
|
||||
return;
|
||||
|
||||
light_time += FrameTime;
|
||||
if (light_time < (F1_0/60)) // it's enough to stress the CPU 60 times per second
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue