aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorlhofhansl <larsh@apache.org>2022-12-25 16:15:32 -0800
committerGitHub <noreply@github.com>2022-12-25 16:15:32 -0800
commit1e7804aaf66e2c2a81f81267923621dea17cb274 (patch)
tree15de0319b559a7679659d66b2b389d71e97352b6 /src/network
parentafd5caa26a2352c912e1a1976b59e1f89773cdec (diff)
downloadminetest-1e7804aaf66e2c2a81f81267923621dea17cb274.tar.xz
Allow saturation to be controlled by the server. (#13075)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp2
-rw-r--r--src/network/networkprotocol.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 9044e6e35..a98fa0733 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -1764,4 +1764,6 @@ void Client::handleCommand_SetLighting(NetworkPacket *pkt)
if (pkt->getRemainingBytes() >= 4)
*pkt >> lighting.shadow_intensity;
+ if (pkt->getRemainingBytes() >= 4)
+ *pkt >> lighting.saturation;
}
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index a1cd926df..01e65ef68 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -830,6 +830,7 @@ enum ToClientCommand
TOCLIENT_SET_LIGHTING = 0x63,
/*
f32 shadow_intensity
+ f32 saturation
*/
TOCLIENT_NUM_MSG_TYPES = 0x64,