aboutsummaryrefslogtreecommitdiff
path: root/src/light.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/light.cpp')
-rw-r--r--src/light.cpp59
1 files changed, 51 insertions, 8 deletions
diff --git a/src/light.cpp b/src/light.cpp
index 73ca297c7..fec800874 100644
--- a/src/light.cpp
+++ b/src/light.cpp
@@ -19,15 +19,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "light.h"
-// LIGHT_MAX is 14, 0-14 is 15 values
-/*u8 light_decode_table[LIGHT_MAX+1] =
+/*u32 daynight_cache_ratios[DAYNIGHT_CACHE_COUNT] =
+{
+ 1000,
+ 600,
+ 300
+};*/
+
+u8 light_decode_table[LIGHT_MAX+1] =
{
0,
-9,
-12,
+6,
+8,
+11,
14,
-16,
-20,
+19,
26,
34,
45,
@@ -37,8 +43,26 @@ with this program; if not, write to the Free Software Foundation, Inc.,
143,
191,
255,
+};
+/*u8 light_decode_table[LIGHT_MAX+1] =
+{
+0,
+3,
+6,
+10,
+18,
+25,
+35,
+50,
+75,
+95,
+120,
+150,
+185,
+215,
+255,
};*/
-u8 light_decode_table[LIGHT_MAX+1] =
+/*u8 light_decode_table[LIGHT_MAX+1] =
{
0,
5,
@@ -55,7 +79,26 @@ u8 light_decode_table[LIGHT_MAX+1] =
185,
215,
255,
-};
+};*/
+// LIGHT_MAX is 14, 0-14 is 15 values
+/*u8 light_decode_table[LIGHT_MAX+1] =
+{
+0,
+9,
+12,
+14,
+16,
+20,
+26,
+34,
+45,
+61,
+81,
+108,
+143,
+191,
+255,
+};*/
#if 0
/*