From 40bdedd2d9682f7be8cda7dc58c411d155067eee Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 22 Oct 2019 21:50:12 +1100 Subject: [PATCH] Fix if rain/snow is on, you're standing outside the map in the border bit between bedrock and water, and you look inside the map to under water blocks, rain/snow appears to be missing above the water. You could still see the rain particles on top of the water though. --- src/MapRenderer.c | 2 +- src/TexturePack.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MapRenderer.c b/src/MapRenderer.c index 3d956a2ae..6666e18c4 100644 --- a/src/MapRenderer.c +++ b/src/MapRenderer.c @@ -89,7 +89,7 @@ static void MapRenderer_CheckWeather(double delta) { IVec3_Floor(&pos, &Camera.CurrentPos); block = World_SafeGetBlock_3I(pos); - outside = pos.Y < 0 || World_ContainsXZ(pos.X, pos.Z); + outside = pos.Y < 0 || !World_ContainsXZ(pos.X, pos.Z); inTranslucent = Blocks.Draw[block] == DRAW_TRANSLUCENT || (pos.Y < Env.EdgeHeight && outside); /* If we are under water, render weather before to blend properly */ diff --git a/src/TexturePack.c b/src/TexturePack.c index fb8056471..32d74bd02 100644 --- a/src/TexturePack.c +++ b/src/TexturePack.c @@ -690,7 +690,7 @@ void TexturePack_ExtractZip_File(const String* filename) { if (res) { Logger_Warn2(res, "closing", &path); } #ifdef CC_BUILD_WEB - Platform_SetDefaultCurrentDirectory(); + Platform_SetDefaultCurrentDirectory(0, NULL); #endif }