mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Minor fixes
This commit is contained in:
parent
770ead7624
commit
b3317fbe66
7 changed files with 21 additions and 21 deletions
|
@ -1868,12 +1868,12 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams ¶ms)
|
|||
<< params.clouds << params.fog_sun_tint
|
||||
<< params.fog_moon_tint << params.fog_tint_type;
|
||||
|
||||
if (params.isSkybox()) {
|
||||
if (params.isTextured()) {
|
||||
pkt << (u16) params.textures.size();
|
||||
for (const std::string &texture : params.textures)
|
||||
pkt << texture;
|
||||
}
|
||||
if (params.isTransparent()) {
|
||||
if (params.hasAlpha()) {
|
||||
auto &c = params.sky_color;
|
||||
pkt << c.day_sky << c.day_horizon << c.dawn_sky << c.dawn_horizon
|
||||
<< c.night_sky << c.night_horizon << c.indoors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue