diff options
author | sfan5 <sfan5@live.de> | 2022-06-19 13:30:11 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-06-19 13:30:11 +0200 |
commit | e92a217bd19ee0b28890a7b33e5c6d7c037354cc (patch) | |
tree | be1a97103b06fd2b70a0a45414c8f4f7bfceb473 /src/client | |
parent | a83d81ff45fda9a93a7e35f8921e826069c843d0 (diff) | |
download | minetest-e92a217bd19ee0b28890a7b33e5c6d7c037354cc.tar.gz minetest-e92a217bd19ee0b28890a7b33e5c6d7c037354cc.tar.bz2 minetest-e92a217bd19ee0b28890a7b33e5c6d7c037354cc.zip |
Fix CAO light calculation issue
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/content_cao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 4d296e6ef..e603b5a21 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -872,7 +872,7 @@ void GenericCAO::updateLight(u32 day_night_ratio) MapNode n = m_env->getMap().getNode(pos[i], &this_ok); if (this_ok) { u16 this_light = getInteriorLight(n, 0, m_client->ndef()); - u8 this_light_intensity = MYMAX(this_light & 0xFF, (this_light >> 8) && 0xFF); + u8 this_light_intensity = MYMAX(this_light & 0xFF, this_light >> 8); if (this_light_intensity > light_at_pos_intensity) { light_at_pos = this_light; light_at_pos_intensity = this_light_intensity; |