mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Transparency setting defaulting to previous behavior
This commit is contained in:
parent
d4e0dfa5f6
commit
ab3073e425
8 changed files with 40 additions and 29 deletions
|
@ -1852,16 +1852,15 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams ¶ms)
|
|||
|
||||
// Handle prior clients here
|
||||
if (m_clients.getProtocolVersion(peer_id) < 39) {
|
||||
pkt << params.bgcolor << params.type << (u16) params.textures.size();
|
||||
pkt << params.bgcolor << params.type << std::string("solid") << (u16) params.textures.size();
|
||||
|
||||
for (const std::string& texture : params.textures)
|
||||
pkt << texture;
|
||||
|
||||
pkt << false;
|
||||
pkt << params.clouds;
|
||||
} else { // Handle current clients and future clients
|
||||
pkt << params.bgcolor << params.type
|
||||
<< params.textures_front << params.clouds << params.fog_sun_tint
|
||||
pkt << params.bgcolor << params.type << params.transparency
|
||||
<< params.clouds << params.fog_sun_tint
|
||||
<< params.fog_moon_tint << params.fog_tint_type;
|
||||
|
||||
if (params.type == "skybox") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue