aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-10-11 23:22:00 +0200
committerHimbeer <himbeer@disroot.org>2024-10-11 23:30:01 +0200
commit9e2212367e5d0ae6f74fd4e39f2faa5636949eb1 (patch)
treec781aabacf7f9f767386c5d36ad261fb9ef25d9b
parent6449669d14e3f7f4b9b48f836cf94def67d857dc (diff)
Fix fog on server hop to subgame with default sky
The default sky had some default values set incorrectly, including FogDistance and BodyOrbitTilt. These values were set to zero instead of the correct values -1 and -1024, respectively. This was overlooked because Minetest sets those values directly in the type declaration and not in the associated default initialization method.
-rw-r--r--hop.go24
1 files changed, 15 insertions, 9 deletions
diff --git a/hop.go b/hop.go
index ed0ef16..4d8ac77 100644
--- a/hop.go
+++ b/hop.go
@@ -165,15 +165,21 @@ func (cc *ClientConn) HopRaw(serverName string) error {
}
cc.SendCmd(&mt.ToCltSkyParams{
- Type: "regular",
- Clouds: true,
- DayHorizon: color.NRGBA{144, 211, 246, 255},
- DawnHorizon: color.NRGBA{186, 193, 240, 255},
- NightHorizon: color.NRGBA{64, 144, 255, 255},
- DaySky: color.NRGBA{97, 181, 245, 255},
- DawnSky: color.NRGBA{180, 186, 250, 255},
- NightSky: color.NRGBA{0, 107, 255, 255},
- Indoor: color.NRGBA{100, 100, 100, 255},
+ BgColor: color.NRGBA{255, 255, 255, 255},
+ Type: "regular",
+ Clouds: true,
+ SunFogTint: color.NRGBA{244, 125, 29, 255},
+ MoonFogTint: color.NRGBA{128, 153, 204, 255},
+ FogTintType: "default",
+ DayHorizon: color.NRGBA{144, 211, 246, 255},
+ DawnHorizon: color.NRGBA{186, 193, 240, 255},
+ NightHorizon: color.NRGBA{64, 144, 255, 255},
+ DaySky: color.NRGBA{97, 181, 245, 255},
+ DawnSky: color.NRGBA{180, 186, 250, 255},
+ NightSky: color.NRGBA{0, 107, 255, 255},
+ Indoor: color.NRGBA{100, 100, 100, 255},
+ BodyOrbitTilt: -1024,
+ FogDistance: -1,
})
cc.SendCmd(&mt.ToCltStarParams{