summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-05-04 20:19:12 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2020-05-05 08:37:04 +0200
commitcad5b987ad4720bd6a49d3604be9e81ea348f799 (patch)
treebd12705293670c9bcfc29c01ac19a1afc44e4e4b /src/network
parent1b6f40c35632ab5a2066822c8b5d4c09d469f49d (diff)
downloadminetest-cad5b987ad4720bd6a49d3604be9e81ea348f799.tar.gz
minetest-cad5b987ad4720bd6a49d3604be9e81ea348f799.tar.bz2
minetest-cad5b987ad4720bd6a49d3604be9e81ea348f799.zip
Sky API: Rename *_tint to fog_*_tint for consistency
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp8
-rw-r--r--src/network/networkprotocol.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 6428ed752..8d0225a3d 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -1276,9 +1276,9 @@ void Client::handleCommand_HudSetSky(NetworkPacket* pkt)
// Fix for "regular" skies, as color isn't kept:
if (skybox.type == "regular") {
skybox.sky_color = sky_defaults.getSkyColorDefaults();
- skybox.tint_type = "default";
- skybox.moon_tint = video::SColor(255, 255, 255, 255);
- skybox.sun_tint = video::SColor(255, 255, 255, 255);
+ skybox.fog_tint_type = "default";
+ skybox.fog_moon_tint = video::SColor(255, 255, 255, 255);
+ skybox.fog_sun_tint = video::SColor(255, 255, 255, 255);
}
else {
sun.visible = false;
@@ -1313,7 +1313,7 @@ void Client::handleCommand_HudSetSky(NetworkPacket* pkt)
std::string texture;
*pkt >> skybox.bgcolor >> skybox.type >> skybox.clouds >>
- skybox.sun_tint >> skybox.moon_tint >> skybox.tint_type;
+ skybox.fog_sun_tint >> skybox.fog_moon_tint >> skybox.fog_tint_type;
if (skybox.type == "skybox") {
*pkt >> texture_count;
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index 73523ea42..527ebba7c 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -634,9 +634,9 @@ enum ToClientCommand
u8[4] night_sky (ARGB)
u8[4] night_horizon (ARGB)
u8[4] indoors (ARGB)
- u8[4] sun_tint (ARGB)
- u8[4] moon_tint (ARGB)
- std::string tint_type
+ u8[4] fog_sun_tint (ARGB)
+ u8[4] fog_moon_tint (ARGB)
+ std::string fog_tint_type
*/
TOCLIENT_OVERRIDE_DAY_NIGHT_RATIO = 0x50,