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 }