aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-26 18:46:34 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-26 18:46:34 +0100
commita65251a7a88e51f2d0039d0a4c032f9090a13025 (patch)
tree7c9e402aad87ac1f43a2918a3a81ad9b1e3d28cf /src
parenteaec3645b08e517e709b15089ad09d4978d69297 (diff)
downloaddragonfireclient-a65251a7a88e51f2d0039d0a4c032f9090a13025.tar.xz
Fixed glowing GenericCAOs being rendered completely back when Fullbright is enabled
Diffstat (limited to 'src')
-rw-r--r--src/client/content_cao.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index aed576372..e1cebf461 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -811,9 +811,6 @@ void GenericCAO::updateLight(u32 day_night_ratio)
u8 light_at_pos = 0;
bool pos_ok = false;
-
- if (g_settings->getBool("fullbright"))
- light_at_pos = 255;
v3s16 pos[3];
u16 npos = getLightPosition(pos);
@@ -830,6 +827,8 @@ void GenericCAO::updateLight(u32 day_night_ratio)
light_at_pos = blend_light(day_night_ratio, LIGHT_SUN, 0);
u8 light = decode_light(light_at_pos + m_glow);
+ if (g_settings->getBool("fullbright"))
+ light = 255;
if (light != m_last_light) {
m_last_light = light;
setNodeLight(light);