summaryrefslogtreecommitdiffhomepage
path: root/src/light.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/light.hpp')
-rw-r--r--src/light.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/light.hpp b/src/light.hpp
index 1332efc3..45c8390e 100644
--- a/src/light.hpp
+++ b/src/light.hpp
@@ -16,7 +16,7 @@ struct light_proto : entity_proto
bool operator==(const light_proto&) const;
float max_distance = 0;
- Color3ub color{255, 255, 255};
+ Color4ub color{255, 255, 255, 255};
light_falloff falloff : 3 = light_falloff::linear;
uint8_t enabled : 1 = true;
};
@@ -24,9 +24,9 @@ struct light_proto : entity_proto
struct light final : entity
{
float max_distance;
- Color3ub color;
+ Color4ub color;
light_falloff falloff : 2;
- uint8_t enabled : 1 = true;
+ uint8_t enabled : 1;
light(object_id id, struct chunk& c, const light_proto& proto);