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.
This commit is contained in:
UnknownShadow200 2019-10-22 21:50:12 +11:00
parent d7040b5327
commit 40bdedd2d9
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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
}